Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json, requests, threading, os, time
- from random import random
- from hashlib import sha1
- from base64 import b64encode
- from pathlib import Path
- api_string = 'https://api.ifunny.mobi/v4'
- user_agent = 'iFunny/5.42(1117792) Android/5.0.2 (samsung; SCH-R530U; samsung)'
- client_id = 'MsOIJ39Q28'
- client_secret = 'PTDc3H8a)Vi=UYap'
- email = "email@gmail.com"
- password = "password"
- def main():
- headers = {
- "Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", #I get the token from some other api that has this shit figured out
- "User-Agent": user_agent
- }
- payload = requests.request("get",f"{api_string}/account",headers = headers)
- user = requests.request("get",f"{api_string}/users/by_nick/LifeIsBeautifuI",headers = headers)
- search = requests.request("get",f"{api_string}/search/users?q=LifeIsBeautifuI",headers = headers)
- blocked = requests.request("get",f"{api_string}/users/my/blocked",headers = headers)
- id = payload.json()["data"]["id"]
- userid = user.json()["data"]["id"]
- p = requests.request("put",f"{api_string}/users/my/blocked/{userid}?type=installation",headers = headers)
- print(payload.json())
- print(user.json()["data"])
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement