![]() ![]() To pass these tokens to the API, use the parameter auth So for example a call to a method that needs authentication will look like: There are two methods to identify the user username/password With this method, the following pramters are passed in plain text: Parameter Tokens is especially good for setting the auth cookie to keep the user logged in. ![]() Auth tokens are at most 64 bytes long and can be passed back instead of username/password credentials. It is provided that these tokens are unique for thier owner at a given moment. This happens with tokens - strings that are generated every time, when the user is logged in. Tokens To call a given method that require authentication, the current user has to be identified. To identify who is exactly the user whose details are changed, the following protocol is used. This means that these methods are oriented to changing the information and data that given user owns and is about him / her. Authentication Many of pCloud API methods require authentication.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |