Category : api

I have tried using old v4.9 endpoints that haven’t been replaced by v1 so far such as: https://developers.google.com/my-business/reference/rest/v4/accounts.locations/reportInsights https://developers.google.com/my-business/reference/rest/v4/accounts.locations.reviews However, none of these endpoints work anymore. I am using PHP client that had these endpoints missing, but using the official v4.9 library listed here: https://developers.google.com/my-business/samples/previousVersions I have been able to reach some of the old ..

Read more

I using laravel api resource for my FRONT-END site. Actually i using also laravel pagination to handle paginate in FRONT-END. The api resource structure like this: { "data": […], "links": […], // handle pagination "meta": […] // handle pagination } But i want to send count of query results without considering paginating .For example i ..

Read more

I’m using PHP Binance Api (https://github.com/binance-exchange/php-binance-api) I set up script with composer. And i set index.php file that’s codes; require ‘vendor/autoload.php’; // 1. config in home directory $api = new BinanceAPI(); // 2. config in specified file $api = new BinanceAPI( "somefile.json" ); // 3. config by specifying api key and secret $api = new ..

Read more

I am trying to make a HTTP request with Axios but all the documentation provided is in PHP and I’m not sure how to convert it to a valid Axios request. Here is the example request they provide me: <?php $url = ‘https://profootballapi.com/schedule’; $api_key = ‘__YOUR__API__KEY__’; $query_string = ‘api_key=’.$api_key.’&year=2014&week=7&season_type=REG’; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); ..

Read more

I am getting cors error on calling login api from react js. https://i.stack.imgur.com/9qRNt.png API’s are build in core php. I tried many options after searching google but these errors comes continue in inspect element and no response is coming… PHP API CODE <?php include_once ‘./config/database.php’; require "./vendor/autoload.php"; use FirebaseJWTJWT; header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: ..

Read more