SHARE
TWEET

Untitled

a guest Feb 16th, 2020 182 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import json, requests, threading, os, time
  2.  
  3. from random import random
  4. from hashlib import sha1
  5. from base64 import b64encode
  6. from pathlib import Path
  7.  
  8.  
  9. api_string = 'https://api.ifunny.mobi/v4'
  10. user_agent = 'iFunny/5.42(1117792) Android/5.0.2 (samsung; SCH-R530U; samsung)'
  11. client_id = 'MsOIJ39Q28'
  12. client_secret = 'PTDc3H8a)Vi=UYap'
  13. email = "email@gmail.com"
  14. password = "password"
  15.  
  16. def main():
  17.     headers = {
  18.         "Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", #I get the token from some other api that has this shit figured out
  19.         "User-Agent": user_agent
  20.     }
  21.     payload = requests.request("get",f"{api_string}/account",headers = headers)
  22.     user = requests.request("get",f"{api_string}/users/by_nick/LifeIsBeautifuI",headers = headers)
  23.     search = requests.request("get",f"{api_string}/search/users?q=LifeIsBeautifuI",headers = headers)
  24.     blocked = requests.request("get",f"{api_string}/users/my/blocked",headers = headers)
  25.     id = payload.json()["data"]["id"]
  26.     userid = user.json()["data"]["id"]
  27.     p = requests.request("put",f"{api_string}/users/my/blocked/{userid}?type=installation",headers = headers)
  28.     print(payload.json())
  29.     print(user.json()["data"])
  30.    
  31. if __name__ == '__main__':
  32.     main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top