Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 2.03 KB

File metadata and controls

68 lines (45 loc) · 2.03 KB

Unifapi\Sdk\MapsApi

All URIs are relative to https://api.unifapi.com, except if the operation defines another base path.

Method HTTP request Description
mapsSearchPost() POST /maps/search Search Maps

mapsSearchPost()

mapsSearchPost($maps_search_request): \Unifapi\\Sdk\Model\MapsSearchPost200Response

Search Maps

Run one live Maps search and receive ranked local business listings for a query, including title, address, rating, category, phone, coordinates, and place id.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer authorization: bearerAuth
$config = Unifapi\\Sdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Unifapi\\Sdk\Api\MapsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$maps_search_request = new \Unifapi\\Sdk\Model\MapsSearchRequest(); // \Unifapi\\Sdk\Model\MapsSearchRequest

try {
    $result = $apiInstance->mapsSearchPost($maps_search_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MapsApi->mapsSearchPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
maps_search_request \Unifapi\Sdk\Model\MapsSearchRequest [optional]

Return type

\Unifapi\Sdk\Model\MapsSearchPost200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]