|
|
|
|
|
WLanguage procedure called by AuthIdentify WLanguage procedure (also called "Callback") called during authentication. This type of procedure can be called: This procedure can be a local, global or internal procedure.
OAuth2Params is OAuth2Parameters
OAuth2Params.ClientID = "01234567890123456789"
OAuth2Params.ClientSecret = "98765432109876543210"
OAuth2Params.AuthURL = "https://www.dropbox.com/oauth2/authorize"
OAuth2Params.TokenURL = "https://api.dropboxapi.com/oauth2/token"
OAuth2Params.AdditionalParameters = "force_reapprove=false"
AuthIdentify(OAuth2Params, AuthIdentifie_Callback)
INTERNAL PROCEDURE AuthIdentifie_Callback(bRésultat is boolean, MonToken is AuthToken)
IF bRésultat = True THEN
req is httpRequest
req.Method = httpPost
req.URL = "https://api.dropboxapi.com/2/files/list_folder"
req.AuthToken = MonToken
req.ContentType = "application/json"
vParamAPI is Variant
vParamAPI.path = "/Homework/math"
vParamAPI.recursive = False
vParamAPI.include_media_info = False
vParamAPI.include_deleted = False
vParamAPI.include_has_explicit_shared_members = False
req.Content = VariantToJSON(vParamAPI)
réponseHTTP is httpResponse = HTTPSend(req)
let Données = JSONToVariant(réponseHTTP.Content)
END
END
Syntax
Callback_Authentication(<Success> , <Token>)
<Success>: Boolean - True if authentication has been completed,
- False otherwise.
<Token>: AuthToken variable AuthToken variable corresponding to the token containing the access information for the next requests that require authentication. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|