Simone Giertz

FireShot Capture 092 - 100 Days of Code_ The Complete Python Pro Bootcamp for 2022 - Udemy_ - www.udemy.com.png

Pixela api

FireShot Capture 093 - 100 Days of Code_ The Complete Python Pro Bootcamp for 2022 - Udemy_ - www.udemy.com.png

http Requests

FireShot Capture 094 - 100 Days of Code_ The Complete Python Pro Bootcamp for 2022 - Udemy_ - www.udemy.com.png

FireShot Capture 095 - 100 Days of Code_ The Complete Python Pro Bootcamp for 2022 - Udemy_ - www.udemy.com.png

Pixela ( https://pixe.la/ )API Document - Pixela API Document

FireShot Capture 096 - 100 Days of Code_ The Complete Python Pro Bootcamp for 2022 - Udemy_ - www.udemy.com.png

Create a user

import requests

pixela_endpoint = "<https://pixe.la/v1/users>"

pixela_user_params={
    "token": "自已取",
    "username":"jtime",
    "agreeTermsOfService":"yes",
    "notMinor":"yes"
}

response = requests.post(url=pixela_endpoint, json=pixela_user_params)
print(response.text)
{"message":"Success. Let's visit <https://pixe.la/@jtime> , it is your profile page!","isSuccess":true}