UGC | Auth API | Примеры | 2GIS Documentation
Auth API

Примеры

curl --request GET 'https://api.auth.2gis.com/2.1/users/me?access_token=ACCESS_TOKEN'
curl --request POST 'https://api.auth.2gis.com/2.1/oauth/token'
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'grant_type=authorization_code'
--data-urlencode 'client_id=CLIENT_ID'
--data-urlencode 'client_secret=CLIENT_SECRET'
--data-urlencode 'redirect_uri=REDIRECT_URI'
--data-urlencode 'code=CODE'
--data-urlencode 'code_verifier=CODE_VERIFIER'