"Authorization" : "Basic {dXNlcjJAZW1ha--ATOKEN--WwuY29tOnBhc3Nxd2Vy}" // if (Authorization) specified. "Content-type" : "application/json"
We are using DRF Basic Authentication for authorization required API endpoints, so please include "Authorization" header when needed.
Example: if you have an account: Email: user1@email.com Password: passqwer, the authorization header would be like:
Email: user1@email.com Password: passqwer
Authorization: Basic dXNlcjFAZW1haWwuY29tOnBhc3Nxd2Vy
dXNlcjFAZW1haWwuY29tOnBhc3Nxd2Vy is base64 encoding of "user1@email.com:passqwer"
dXNlcjFAZW1haWwuY29tOnBhc3Nxd2Vy
In python3, you can convert utf-8 string to base64 encoding by:
>>> import base64 >>> base64.b64encode(bytes('user1@email.com:passqwer', 'utf-8')) b'dXNlcjFAZW1haWwuY29tOnBhc3Nxd2Vy'
Backend User API
Backend Post API
Backend Comment API
Backend Friend API
There was an error while loading. Please reload this page.