Li

Delete

Are you sure you want to delete this?

PaypalModel


Date
20211028
Target
C_003
Title
[?] Bearer Access-Token of REST APIs / API Requests
Contents
https://developer.paypal.com/docs/api/reference/get-an-access-token/ Your access token authorizes you to use the PayPal REST API server. To call a REST API in your integration, exchange your client ID and secret for an access token in an OAuth 2.0 token call. While there are a few ways to get a token, here are examples using both the Postman app and a cURL command. METHOD cURL curl -v https://api-m.sandbox.paypal.com/v1/oauth2/token \ -H "Accept: application/json" \ -H "Accept-Language: en_US" \ -u "client_id:secret" \ -d "grant_type=client_credentials" Client ID Aaa6bBAPUZTOPAWLJy1E28dcVXA6a7v-MfajSO_o8v-JBZV76v67wjzE2-rB Secret EB4OYhCD2-TreOX8_oWtk2aJsgySeiXlln_Mevmm1NikSbQg5JtwgaT6p7HP Client ID ASwXbvgN0cHc5Gzp7kQkThmid2cp33HSdbsq9Q8N2HvhsGlqIjy-cNfr2XVQPa1u1Z8yq3Irq6yPoDKA:ECy0eAVjNcotJUTumywnC5JYqWgvOXbyh07scX4zu8XxkrOxyV0FK7vj-x7zDQeRsL-G4gk32qVwOWtI Secret ECy0eAVjNcotJUTumywnC5JYqWgvOXbyh07scX4zu8XxkrOxyV0FK7vj-x7zDQeRsL-G4gk32qVwOWtI curl -v https://api-m.sandbox.paypal.com/v1/oauth2/token \ -H "Accept: application/json" \ -H "Accept-Language: en_US" \ -u "ASwXbvgN0cHc5Gzp7kQkThmid2cp33HSdbsq9Q8N2HvhsGlqIjy-cNfr2XVQPa1u1Z8yq3Irq6yPoDKA:ECy0eAVjNcotJUTumywnC5JYqWgvOXbyh07scX4zu8XxkrOxyV0FK7vj-x7zDQeRsL-G4gk32qVwOWtI " \ -d "grant_type=client_credentials"