![]() ![]() String The type of the token (always bearer). String A token that could be used to call pCloud API methods. Token flow These parameters are pased in the URI fragment (after #) Parameter Redirect_uri?code=XXXXX&state=YYYYY&locationid=&hostname= Consequent API calls have to be made to that host name. Number The ID for the location of the data center where the user is located. String The contents of the state parameter, that was passed. String The authorization code that could be exchanged for a bearer token by calling oauth2_token On approval redirects to: Code flow These parameters are pased in the query string (after ?) Parameter Currently the only option is manageshares If set additional permissions will appear in the approval form. String opaque data that will be passed back to redirect_uri.īool if set, will force re-approval even if the application is already approved by the user.Ī comma (,) separated list. String where to redirect after approval, mandatory for token, optional for code (code will be displayed to the user in this case). Token flow is appropriate for pure client-side apps - such for mobile devices or based only on JavaScript. It does not rquires your app to initiate a second call to pCloud API.Ĭode flow is recommended if the app is using a server. Token (implicit) flow - returns the bearer token via the redirect_uri redirect.This code after that should be converted inot a bearer token using oauth2_token method. Code flow - returns a code via the redirect_uri redirect. ![]() OAuth 2.0 has two different authorization flows: See output parameters for more information. In the parameters in the redirect URL there will parameters locationid and hostname which will provide information about the location. User's data could be store either in United States or in Europe. After the user takes the decision to give or not access to your application to his profile information and personal data, they will be redirected to the URI specified by redirect_uri. On this page the user logs in to pCloud and then decides whether to grant the access to your app. This is a web page which starts the OAuth 2.0 authorization flow. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |