Получите ответ Postman API через PHP [дубликат] ⇐ Php
-
Гость
Получите ответ Postman API через PHP [дубликат]
Get Postman API Response via PHP
I'm trying to get an API response in Postman via PHP. Via post method. But failed. Here is my PHP code. Secret_id and client_secret are correct, for testing. Is my code wrong?
An example of the response I should get from the Postman is:
{ "refresh_token_expires_in": "0", "api_product_list": "[api-sandbox]", "api_product_list_json": [ "api-sandbox" ], "organization_name": "ihs-prod-1", "developer.email": "rahmayantiproject@gmail.com", "token_type": "BearerToken", "issued_at": "1709345282672", "client_id": "pPsrg1aLNPlO6Z8HyGHGc61xOnLCbn1XHaNZEsATomTrdxli", "access_token": "rk5vGJ2ylIm22GIkTqbYdBoEtHpL", "application_name": "3c10ebe7-5f7a-4e7a-bee0-c9b207641ee1", "scope": "", "expires_in": "14399", "refresh_count": "0", "status": "approved" } But I get a blank white page
Источник: https://stackoverflow.com/questions/780 ... se-via-php
Get Postman API Response via PHP
I'm trying to get an API response in Postman via PHP. Via post method. But failed. Here is my PHP code. Secret_id and client_secret are correct, for testing. Is my code wrong?
An example of the response I should get from the Postman is:
{ "refresh_token_expires_in": "0", "api_product_list": "[api-sandbox]", "api_product_list_json": [ "api-sandbox" ], "organization_name": "ihs-prod-1", "developer.email": "rahmayantiproject@gmail.com", "token_type": "BearerToken", "issued_at": "1709345282672", "client_id": "pPsrg1aLNPlO6Z8HyGHGc61xOnLCbn1XHaNZEsATomTrdxli", "access_token": "rk5vGJ2ylIm22GIkTqbYdBoEtHpL", "application_name": "3c10ebe7-5f7a-4e7a-bee0-c9b207641ee1", "scope": "", "expires_in": "14399", "refresh_count": "0", "status": "approved" } But I get a blank white page
Источник: https://stackoverflow.com/questions/780 ... se-via-php
Мобильная версия