POST mybusinessbusinessinformation.accounts.locations.create
{{baseUrl}}/v1/:parent/locations
QUERY PARAMS

parent
BODY json

{
  "adWordsLocationExtensions": {
    "adPhone": ""
  },
  "categories": {
    "additionalCategories": [
      {
        "displayName": "",
        "moreHoursTypes": [
          {
            "displayName": "",
            "hoursTypeId": "",
            "localizedDisplayName": ""
          }
        ],
        "name": "",
        "serviceTypes": [
          {
            "displayName": "",
            "serviceTypeId": ""
          }
        ]
      }
    ],
    "primaryCategory": {}
  },
  "labels": [],
  "languageCode": "",
  "latlng": {
    "latitude": "",
    "longitude": ""
  },
  "metadata": {
    "canDelete": false,
    "canHaveBusinessCalls": false,
    "canHaveFoodMenus": false,
    "canModifyServiceList": false,
    "canOperateHealthData": false,
    "canOperateLocalPost": false,
    "canOperateLodgingData": false,
    "duplicateLocation": "",
    "hasGoogleUpdated": false,
    "hasPendingEdits": false,
    "hasVoiceOfMerchant": false,
    "mapsUri": "",
    "newReviewUri": "",
    "placeId": ""
  },
  "moreHours": [
    {
      "hoursTypeId": "",
      "periods": [
        {
          "closeDay": "",
          "closeTime": {
            "hours": 0,
            "minutes": 0,
            "nanos": 0,
            "seconds": 0
          },
          "openDay": "",
          "openTime": {}
        }
      ]
    }
  ],
  "name": "",
  "openInfo": {
    "canReopen": false,
    "openingDate": {
      "day": 0,
      "month": 0,
      "year": 0
    },
    "status": ""
  },
  "phoneNumbers": {
    "additionalPhones": [],
    "primaryPhone": ""
  },
  "profile": {
    "description": ""
  },
  "regularHours": {
    "periods": [
      {}
    ]
  },
  "relationshipData": {
    "childrenLocations": [
      {
        "placeId": "",
        "relationType": ""
      }
    ],
    "parentChain": "",
    "parentLocation": {}
  },
  "serviceArea": {
    "businessType": "",
    "places": {
      "placeInfos": [
        {
          "placeId": "",
          "placeName": ""
        }
      ]
    },
    "regionCode": ""
  },
  "serviceItems": [
    {
      "freeFormServiceItem": {
        "category": "",
        "label": {
          "description": "",
          "displayName": "",
          "languageCode": ""
        }
      },
      "price": {
        "currencyCode": "",
        "nanos": 0,
        "units": ""
      },
      "structuredServiceItem": {
        "description": "",
        "serviceTypeId": ""
      }
    }
  ],
  "specialHours": {
    "specialHourPeriods": [
      {
        "closeTime": {},
        "closed": false,
        "endDate": {},
        "openTime": {},
        "startDate": {}
      }
    ]
  },
  "storeCode": "",
  "storefrontAddress": {
    "addressLines": [],
    "administrativeArea": "",
    "languageCode": "",
    "locality": "",
    "organization": "",
    "postalCode": "",
    "recipients": [],
    "regionCode": "",
    "revision": 0,
    "sortingCode": "",
    "sublocality": ""
  },
  "title": "",
  "websiteUri": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/locations");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/:parent/locations" {:content-type :json
                                                                 :form-params {:adWordsLocationExtensions {:adPhone ""}
                                                                               :categories {:additionalCategories [{:displayName ""
                                                                                                                    :moreHoursTypes [{:displayName ""
                                                                                                                                      :hoursTypeId ""
                                                                                                                                      :localizedDisplayName ""}]
                                                                                                                    :name ""
                                                                                                                    :serviceTypes [{:displayName ""
                                                                                                                                    :serviceTypeId ""}]}]
                                                                                            :primaryCategory {}}
                                                                               :labels []
                                                                               :languageCode ""
                                                                               :latlng {:latitude ""
                                                                                        :longitude ""}
                                                                               :metadata {:canDelete false
                                                                                          :canHaveBusinessCalls false
                                                                                          :canHaveFoodMenus false
                                                                                          :canModifyServiceList false
                                                                                          :canOperateHealthData false
                                                                                          :canOperateLocalPost false
                                                                                          :canOperateLodgingData false
                                                                                          :duplicateLocation ""
                                                                                          :hasGoogleUpdated false
                                                                                          :hasPendingEdits false
                                                                                          :hasVoiceOfMerchant false
                                                                                          :mapsUri ""
                                                                                          :newReviewUri ""
                                                                                          :placeId ""}
                                                                               :moreHours [{:hoursTypeId ""
                                                                                            :periods [{:closeDay ""
                                                                                                       :closeTime {:hours 0
                                                                                                                   :minutes 0
                                                                                                                   :nanos 0
                                                                                                                   :seconds 0}
                                                                                                       :openDay ""
                                                                                                       :openTime {}}]}]
                                                                               :name ""
                                                                               :openInfo {:canReopen false
                                                                                          :openingDate {:day 0
                                                                                                        :month 0
                                                                                                        :year 0}
                                                                                          :status ""}
                                                                               :phoneNumbers {:additionalPhones []
                                                                                              :primaryPhone ""}
                                                                               :profile {:description ""}
                                                                               :regularHours {:periods [{}]}
                                                                               :relationshipData {:childrenLocations [{:placeId ""
                                                                                                                       :relationType ""}]
                                                                                                  :parentChain ""
                                                                                                  :parentLocation {}}
                                                                               :serviceArea {:businessType ""
                                                                                             :places {:placeInfos [{:placeId ""
                                                                                                                    :placeName ""}]}
                                                                                             :regionCode ""}
                                                                               :serviceItems [{:freeFormServiceItem {:category ""
                                                                                                                     :label {:description ""
                                                                                                                             :displayName ""
                                                                                                                             :languageCode ""}}
                                                                                               :price {:currencyCode ""
                                                                                                       :nanos 0
                                                                                                       :units ""}
                                                                                               :structuredServiceItem {:description ""
                                                                                                                       :serviceTypeId ""}}]
                                                                               :specialHours {:specialHourPeriods [{:closeTime {}
                                                                                                                    :closed false
                                                                                                                    :endDate {}
                                                                                                                    :openTime {}
                                                                                                                    :startDate {}}]}
                                                                               :storeCode ""
                                                                               :storefrontAddress {:addressLines []
                                                                                                   :administrativeArea ""
                                                                                                   :languageCode ""
                                                                                                   :locality ""
                                                                                                   :organization ""
                                                                                                   :postalCode ""
                                                                                                   :recipients []
                                                                                                   :regionCode ""
                                                                                                   :revision 0
                                                                                                   :sortingCode ""
                                                                                                   :sublocality ""}
                                                                               :title ""
                                                                               :websiteUri ""}})
require "http/client"

url = "{{baseUrl}}/v1/:parent/locations"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/:parent/locations"),
    Content = new StringContent("{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/locations");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:parent/locations"

	payload := strings.NewReader("{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/:parent/locations HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2983

{
  "adWordsLocationExtensions": {
    "adPhone": ""
  },
  "categories": {
    "additionalCategories": [
      {
        "displayName": "",
        "moreHoursTypes": [
          {
            "displayName": "",
            "hoursTypeId": "",
            "localizedDisplayName": ""
          }
        ],
        "name": "",
        "serviceTypes": [
          {
            "displayName": "",
            "serviceTypeId": ""
          }
        ]
      }
    ],
    "primaryCategory": {}
  },
  "labels": [],
  "languageCode": "",
  "latlng": {
    "latitude": "",
    "longitude": ""
  },
  "metadata": {
    "canDelete": false,
    "canHaveBusinessCalls": false,
    "canHaveFoodMenus": false,
    "canModifyServiceList": false,
    "canOperateHealthData": false,
    "canOperateLocalPost": false,
    "canOperateLodgingData": false,
    "duplicateLocation": "",
    "hasGoogleUpdated": false,
    "hasPendingEdits": false,
    "hasVoiceOfMerchant": false,
    "mapsUri": "",
    "newReviewUri": "",
    "placeId": ""
  },
  "moreHours": [
    {
      "hoursTypeId": "",
      "periods": [
        {
          "closeDay": "",
          "closeTime": {
            "hours": 0,
            "minutes": 0,
            "nanos": 0,
            "seconds": 0
          },
          "openDay": "",
          "openTime": {}
        }
      ]
    }
  ],
  "name": "",
  "openInfo": {
    "canReopen": false,
    "openingDate": {
      "day": 0,
      "month": 0,
      "year": 0
    },
    "status": ""
  },
  "phoneNumbers": {
    "additionalPhones": [],
    "primaryPhone": ""
  },
  "profile": {
    "description": ""
  },
  "regularHours": {
    "periods": [
      {}
    ]
  },
  "relationshipData": {
    "childrenLocations": [
      {
        "placeId": "",
        "relationType": ""
      }
    ],
    "parentChain": "",
    "parentLocation": {}
  },
  "serviceArea": {
    "businessType": "",
    "places": {
      "placeInfos": [
        {
          "placeId": "",
          "placeName": ""
        }
      ]
    },
    "regionCode": ""
  },
  "serviceItems": [
    {
      "freeFormServiceItem": {
        "category": "",
        "label": {
          "description": "",
          "displayName": "",
          "languageCode": ""
        }
      },
      "price": {
        "currencyCode": "",
        "nanos": 0,
        "units": ""
      },
      "structuredServiceItem": {
        "description": "",
        "serviceTypeId": ""
      }
    }
  ],
  "specialHours": {
    "specialHourPeriods": [
      {
        "closeTime": {},
        "closed": false,
        "endDate": {},
        "openTime": {},
        "startDate": {}
      }
    ]
  },
  "storeCode": "",
  "storefrontAddress": {
    "addressLines": [],
    "administrativeArea": "",
    "languageCode": "",
    "locality": "",
    "organization": "",
    "postalCode": "",
    "recipients": [],
    "regionCode": "",
    "revision": 0,
    "sortingCode": "",
    "sublocality": ""
  },
  "title": "",
  "websiteUri": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/locations")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/locations"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/locations")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/locations")
  .header("content-type", "application/json")
  .body("{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  adWordsLocationExtensions: {
    adPhone: ''
  },
  categories: {
    additionalCategories: [
      {
        displayName: '',
        moreHoursTypes: [
          {
            displayName: '',
            hoursTypeId: '',
            localizedDisplayName: ''
          }
        ],
        name: '',
        serviceTypes: [
          {
            displayName: '',
            serviceTypeId: ''
          }
        ]
      }
    ],
    primaryCategory: {}
  },
  labels: [],
  languageCode: '',
  latlng: {
    latitude: '',
    longitude: ''
  },
  metadata: {
    canDelete: false,
    canHaveBusinessCalls: false,
    canHaveFoodMenus: false,
    canModifyServiceList: false,
    canOperateHealthData: false,
    canOperateLocalPost: false,
    canOperateLodgingData: false,
    duplicateLocation: '',
    hasGoogleUpdated: false,
    hasPendingEdits: false,
    hasVoiceOfMerchant: false,
    mapsUri: '',
    newReviewUri: '',
    placeId: ''
  },
  moreHours: [
    {
      hoursTypeId: '',
      periods: [
        {
          closeDay: '',
          closeTime: {
            hours: 0,
            minutes: 0,
            nanos: 0,
            seconds: 0
          },
          openDay: '',
          openTime: {}
        }
      ]
    }
  ],
  name: '',
  openInfo: {
    canReopen: false,
    openingDate: {
      day: 0,
      month: 0,
      year: 0
    },
    status: ''
  },
  phoneNumbers: {
    additionalPhones: [],
    primaryPhone: ''
  },
  profile: {
    description: ''
  },
  regularHours: {
    periods: [
      {}
    ]
  },
  relationshipData: {
    childrenLocations: [
      {
        placeId: '',
        relationType: ''
      }
    ],
    parentChain: '',
    parentLocation: {}
  },
  serviceArea: {
    businessType: '',
    places: {
      placeInfos: [
        {
          placeId: '',
          placeName: ''
        }
      ]
    },
    regionCode: ''
  },
  serviceItems: [
    {
      freeFormServiceItem: {
        category: '',
        label: {
          description: '',
          displayName: '',
          languageCode: ''
        }
      },
      price: {
        currencyCode: '',
        nanos: 0,
        units: ''
      },
      structuredServiceItem: {
        description: '',
        serviceTypeId: ''
      }
    }
  ],
  specialHours: {
    specialHourPeriods: [
      {
        closeTime: {},
        closed: false,
        endDate: {},
        openTime: {},
        startDate: {}
      }
    ]
  },
  storeCode: '',
  storefrontAddress: {
    addressLines: [],
    administrativeArea: '',
    languageCode: '',
    locality: '',
    organization: '',
    postalCode: '',
    recipients: [],
    regionCode: '',
    revision: 0,
    sortingCode: '',
    sublocality: ''
  },
  title: '',
  websiteUri: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/:parent/locations');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/locations',
  headers: {'content-type': 'application/json'},
  data: {
    adWordsLocationExtensions: {adPhone: ''},
    categories: {
      additionalCategories: [
        {
          displayName: '',
          moreHoursTypes: [{displayName: '', hoursTypeId: '', localizedDisplayName: ''}],
          name: '',
          serviceTypes: [{displayName: '', serviceTypeId: ''}]
        }
      ],
      primaryCategory: {}
    },
    labels: [],
    languageCode: '',
    latlng: {latitude: '', longitude: ''},
    metadata: {
      canDelete: false,
      canHaveBusinessCalls: false,
      canHaveFoodMenus: false,
      canModifyServiceList: false,
      canOperateHealthData: false,
      canOperateLocalPost: false,
      canOperateLodgingData: false,
      duplicateLocation: '',
      hasGoogleUpdated: false,
      hasPendingEdits: false,
      hasVoiceOfMerchant: false,
      mapsUri: '',
      newReviewUri: '',
      placeId: ''
    },
    moreHours: [
      {
        hoursTypeId: '',
        periods: [
          {
            closeDay: '',
            closeTime: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
            openDay: '',
            openTime: {}
          }
        ]
      }
    ],
    name: '',
    openInfo: {canReopen: false, openingDate: {day: 0, month: 0, year: 0}, status: ''},
    phoneNumbers: {additionalPhones: [], primaryPhone: ''},
    profile: {description: ''},
    regularHours: {periods: [{}]},
    relationshipData: {
      childrenLocations: [{placeId: '', relationType: ''}],
      parentChain: '',
      parentLocation: {}
    },
    serviceArea: {
      businessType: '',
      places: {placeInfos: [{placeId: '', placeName: ''}]},
      regionCode: ''
    },
    serviceItems: [
      {
        freeFormServiceItem: {category: '', label: {description: '', displayName: '', languageCode: ''}},
        price: {currencyCode: '', nanos: 0, units: ''},
        structuredServiceItem: {description: '', serviceTypeId: ''}
      }
    ],
    specialHours: {
      specialHourPeriods: [{closeTime: {}, closed: false, endDate: {}, openTime: {}, startDate: {}}]
    },
    storeCode: '',
    storefrontAddress: {
      addressLines: [],
      administrativeArea: '',
      languageCode: '',
      locality: '',
      organization: '',
      postalCode: '',
      recipients: [],
      regionCode: '',
      revision: 0,
      sortingCode: '',
      sublocality: ''
    },
    title: '',
    websiteUri: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/locations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"adWordsLocationExtensions":{"adPhone":""},"categories":{"additionalCategories":[{"displayName":"","moreHoursTypes":[{"displayName":"","hoursTypeId":"","localizedDisplayName":""}],"name":"","serviceTypes":[{"displayName":"","serviceTypeId":""}]}],"primaryCategory":{}},"labels":[],"languageCode":"","latlng":{"latitude":"","longitude":""},"metadata":{"canDelete":false,"canHaveBusinessCalls":false,"canHaveFoodMenus":false,"canModifyServiceList":false,"canOperateHealthData":false,"canOperateLocalPost":false,"canOperateLodgingData":false,"duplicateLocation":"","hasGoogleUpdated":false,"hasPendingEdits":false,"hasVoiceOfMerchant":false,"mapsUri":"","newReviewUri":"","placeId":""},"moreHours":[{"hoursTypeId":"","periods":[{"closeDay":"","closeTime":{"hours":0,"minutes":0,"nanos":0,"seconds":0},"openDay":"","openTime":{}}]}],"name":"","openInfo":{"canReopen":false,"openingDate":{"day":0,"month":0,"year":0},"status":""},"phoneNumbers":{"additionalPhones":[],"primaryPhone":""},"profile":{"description":""},"regularHours":{"periods":[{}]},"relationshipData":{"childrenLocations":[{"placeId":"","relationType":""}],"parentChain":"","parentLocation":{}},"serviceArea":{"businessType":"","places":{"placeInfos":[{"placeId":"","placeName":""}]},"regionCode":""},"serviceItems":[{"freeFormServiceItem":{"category":"","label":{"description":"","displayName":"","languageCode":""}},"price":{"currencyCode":"","nanos":0,"units":""},"structuredServiceItem":{"description":"","serviceTypeId":""}}],"specialHours":{"specialHourPeriods":[{"closeTime":{},"closed":false,"endDate":{},"openTime":{},"startDate":{}}]},"storeCode":"","storefrontAddress":{"addressLines":[],"administrativeArea":"","languageCode":"","locality":"","organization":"","postalCode":"","recipients":[],"regionCode":"","revision":0,"sortingCode":"","sublocality":""},"title":"","websiteUri":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:parent/locations',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "adWordsLocationExtensions": {\n    "adPhone": ""\n  },\n  "categories": {\n    "additionalCategories": [\n      {\n        "displayName": "",\n        "moreHoursTypes": [\n          {\n            "displayName": "",\n            "hoursTypeId": "",\n            "localizedDisplayName": ""\n          }\n        ],\n        "name": "",\n        "serviceTypes": [\n          {\n            "displayName": "",\n            "serviceTypeId": ""\n          }\n        ]\n      }\n    ],\n    "primaryCategory": {}\n  },\n  "labels": [],\n  "languageCode": "",\n  "latlng": {\n    "latitude": "",\n    "longitude": ""\n  },\n  "metadata": {\n    "canDelete": false,\n    "canHaveBusinessCalls": false,\n    "canHaveFoodMenus": false,\n    "canModifyServiceList": false,\n    "canOperateHealthData": false,\n    "canOperateLocalPost": false,\n    "canOperateLodgingData": false,\n    "duplicateLocation": "",\n    "hasGoogleUpdated": false,\n    "hasPendingEdits": false,\n    "hasVoiceOfMerchant": false,\n    "mapsUri": "",\n    "newReviewUri": "",\n    "placeId": ""\n  },\n  "moreHours": [\n    {\n      "hoursTypeId": "",\n      "periods": [\n        {\n          "closeDay": "",\n          "closeTime": {\n            "hours": 0,\n            "minutes": 0,\n            "nanos": 0,\n            "seconds": 0\n          },\n          "openDay": "",\n          "openTime": {}\n        }\n      ]\n    }\n  ],\n  "name": "",\n  "openInfo": {\n    "canReopen": false,\n    "openingDate": {\n      "day": 0,\n      "month": 0,\n      "year": 0\n    },\n    "status": ""\n  },\n  "phoneNumbers": {\n    "additionalPhones": [],\n    "primaryPhone": ""\n  },\n  "profile": {\n    "description": ""\n  },\n  "regularHours": {\n    "periods": [\n      {}\n    ]\n  },\n  "relationshipData": {\n    "childrenLocations": [\n      {\n        "placeId": "",\n        "relationType": ""\n      }\n    ],\n    "parentChain": "",\n    "parentLocation": {}\n  },\n  "serviceArea": {\n    "businessType": "",\n    "places": {\n      "placeInfos": [\n        {\n          "placeId": "",\n          "placeName": ""\n        }\n      ]\n    },\n    "regionCode": ""\n  },\n  "serviceItems": [\n    {\n      "freeFormServiceItem": {\n        "category": "",\n        "label": {\n          "description": "",\n          "displayName": "",\n          "languageCode": ""\n        }\n      },\n      "price": {\n        "currencyCode": "",\n        "nanos": 0,\n        "units": ""\n      },\n      "structuredServiceItem": {\n        "description": "",\n        "serviceTypeId": ""\n      }\n    }\n  ],\n  "specialHours": {\n    "specialHourPeriods": [\n      {\n        "closeTime": {},\n        "closed": false,\n        "endDate": {},\n        "openTime": {},\n        "startDate": {}\n      }\n    ]\n  },\n  "storeCode": "",\n  "storefrontAddress": {\n    "addressLines": [],\n    "administrativeArea": "",\n    "languageCode": "",\n    "locality": "",\n    "organization": "",\n    "postalCode": "",\n    "recipients": [],\n    "regionCode": "",\n    "revision": 0,\n    "sortingCode": "",\n    "sublocality": ""\n  },\n  "title": "",\n  "websiteUri": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/locations")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:parent/locations',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  adWordsLocationExtensions: {adPhone: ''},
  categories: {
    additionalCategories: [
      {
        displayName: '',
        moreHoursTypes: [{displayName: '', hoursTypeId: '', localizedDisplayName: ''}],
        name: '',
        serviceTypes: [{displayName: '', serviceTypeId: ''}]
      }
    ],
    primaryCategory: {}
  },
  labels: [],
  languageCode: '',
  latlng: {latitude: '', longitude: ''},
  metadata: {
    canDelete: false,
    canHaveBusinessCalls: false,
    canHaveFoodMenus: false,
    canModifyServiceList: false,
    canOperateHealthData: false,
    canOperateLocalPost: false,
    canOperateLodgingData: false,
    duplicateLocation: '',
    hasGoogleUpdated: false,
    hasPendingEdits: false,
    hasVoiceOfMerchant: false,
    mapsUri: '',
    newReviewUri: '',
    placeId: ''
  },
  moreHours: [
    {
      hoursTypeId: '',
      periods: [
        {
          closeDay: '',
          closeTime: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
          openDay: '',
          openTime: {}
        }
      ]
    }
  ],
  name: '',
  openInfo: {canReopen: false, openingDate: {day: 0, month: 0, year: 0}, status: ''},
  phoneNumbers: {additionalPhones: [], primaryPhone: ''},
  profile: {description: ''},
  regularHours: {periods: [{}]},
  relationshipData: {
    childrenLocations: [{placeId: '', relationType: ''}],
    parentChain: '',
    parentLocation: {}
  },
  serviceArea: {
    businessType: '',
    places: {placeInfos: [{placeId: '', placeName: ''}]},
    regionCode: ''
  },
  serviceItems: [
    {
      freeFormServiceItem: {category: '', label: {description: '', displayName: '', languageCode: ''}},
      price: {currencyCode: '', nanos: 0, units: ''},
      structuredServiceItem: {description: '', serviceTypeId: ''}
    }
  ],
  specialHours: {
    specialHourPeriods: [{closeTime: {}, closed: false, endDate: {}, openTime: {}, startDate: {}}]
  },
  storeCode: '',
  storefrontAddress: {
    addressLines: [],
    administrativeArea: '',
    languageCode: '',
    locality: '',
    organization: '',
    postalCode: '',
    recipients: [],
    regionCode: '',
    revision: 0,
    sortingCode: '',
    sublocality: ''
  },
  title: '',
  websiteUri: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/locations',
  headers: {'content-type': 'application/json'},
  body: {
    adWordsLocationExtensions: {adPhone: ''},
    categories: {
      additionalCategories: [
        {
          displayName: '',
          moreHoursTypes: [{displayName: '', hoursTypeId: '', localizedDisplayName: ''}],
          name: '',
          serviceTypes: [{displayName: '', serviceTypeId: ''}]
        }
      ],
      primaryCategory: {}
    },
    labels: [],
    languageCode: '',
    latlng: {latitude: '', longitude: ''},
    metadata: {
      canDelete: false,
      canHaveBusinessCalls: false,
      canHaveFoodMenus: false,
      canModifyServiceList: false,
      canOperateHealthData: false,
      canOperateLocalPost: false,
      canOperateLodgingData: false,
      duplicateLocation: '',
      hasGoogleUpdated: false,
      hasPendingEdits: false,
      hasVoiceOfMerchant: false,
      mapsUri: '',
      newReviewUri: '',
      placeId: ''
    },
    moreHours: [
      {
        hoursTypeId: '',
        periods: [
          {
            closeDay: '',
            closeTime: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
            openDay: '',
            openTime: {}
          }
        ]
      }
    ],
    name: '',
    openInfo: {canReopen: false, openingDate: {day: 0, month: 0, year: 0}, status: ''},
    phoneNumbers: {additionalPhones: [], primaryPhone: ''},
    profile: {description: ''},
    regularHours: {periods: [{}]},
    relationshipData: {
      childrenLocations: [{placeId: '', relationType: ''}],
      parentChain: '',
      parentLocation: {}
    },
    serviceArea: {
      businessType: '',
      places: {placeInfos: [{placeId: '', placeName: ''}]},
      regionCode: ''
    },
    serviceItems: [
      {
        freeFormServiceItem: {category: '', label: {description: '', displayName: '', languageCode: ''}},
        price: {currencyCode: '', nanos: 0, units: ''},
        structuredServiceItem: {description: '', serviceTypeId: ''}
      }
    ],
    specialHours: {
      specialHourPeriods: [{closeTime: {}, closed: false, endDate: {}, openTime: {}, startDate: {}}]
    },
    storeCode: '',
    storefrontAddress: {
      addressLines: [],
      administrativeArea: '',
      languageCode: '',
      locality: '',
      organization: '',
      postalCode: '',
      recipients: [],
      regionCode: '',
      revision: 0,
      sortingCode: '',
      sublocality: ''
    },
    title: '',
    websiteUri: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/:parent/locations');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  adWordsLocationExtensions: {
    adPhone: ''
  },
  categories: {
    additionalCategories: [
      {
        displayName: '',
        moreHoursTypes: [
          {
            displayName: '',
            hoursTypeId: '',
            localizedDisplayName: ''
          }
        ],
        name: '',
        serviceTypes: [
          {
            displayName: '',
            serviceTypeId: ''
          }
        ]
      }
    ],
    primaryCategory: {}
  },
  labels: [],
  languageCode: '',
  latlng: {
    latitude: '',
    longitude: ''
  },
  metadata: {
    canDelete: false,
    canHaveBusinessCalls: false,
    canHaveFoodMenus: false,
    canModifyServiceList: false,
    canOperateHealthData: false,
    canOperateLocalPost: false,
    canOperateLodgingData: false,
    duplicateLocation: '',
    hasGoogleUpdated: false,
    hasPendingEdits: false,
    hasVoiceOfMerchant: false,
    mapsUri: '',
    newReviewUri: '',
    placeId: ''
  },
  moreHours: [
    {
      hoursTypeId: '',
      periods: [
        {
          closeDay: '',
          closeTime: {
            hours: 0,
            minutes: 0,
            nanos: 0,
            seconds: 0
          },
          openDay: '',
          openTime: {}
        }
      ]
    }
  ],
  name: '',
  openInfo: {
    canReopen: false,
    openingDate: {
      day: 0,
      month: 0,
      year: 0
    },
    status: ''
  },
  phoneNumbers: {
    additionalPhones: [],
    primaryPhone: ''
  },
  profile: {
    description: ''
  },
  regularHours: {
    periods: [
      {}
    ]
  },
  relationshipData: {
    childrenLocations: [
      {
        placeId: '',
        relationType: ''
      }
    ],
    parentChain: '',
    parentLocation: {}
  },
  serviceArea: {
    businessType: '',
    places: {
      placeInfos: [
        {
          placeId: '',
          placeName: ''
        }
      ]
    },
    regionCode: ''
  },
  serviceItems: [
    {
      freeFormServiceItem: {
        category: '',
        label: {
          description: '',
          displayName: '',
          languageCode: ''
        }
      },
      price: {
        currencyCode: '',
        nanos: 0,
        units: ''
      },
      structuredServiceItem: {
        description: '',
        serviceTypeId: ''
      }
    }
  ],
  specialHours: {
    specialHourPeriods: [
      {
        closeTime: {},
        closed: false,
        endDate: {},
        openTime: {},
        startDate: {}
      }
    ]
  },
  storeCode: '',
  storefrontAddress: {
    addressLines: [],
    administrativeArea: '',
    languageCode: '',
    locality: '',
    organization: '',
    postalCode: '',
    recipients: [],
    regionCode: '',
    revision: 0,
    sortingCode: '',
    sublocality: ''
  },
  title: '',
  websiteUri: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/locations',
  headers: {'content-type': 'application/json'},
  data: {
    adWordsLocationExtensions: {adPhone: ''},
    categories: {
      additionalCategories: [
        {
          displayName: '',
          moreHoursTypes: [{displayName: '', hoursTypeId: '', localizedDisplayName: ''}],
          name: '',
          serviceTypes: [{displayName: '', serviceTypeId: ''}]
        }
      ],
      primaryCategory: {}
    },
    labels: [],
    languageCode: '',
    latlng: {latitude: '', longitude: ''},
    metadata: {
      canDelete: false,
      canHaveBusinessCalls: false,
      canHaveFoodMenus: false,
      canModifyServiceList: false,
      canOperateHealthData: false,
      canOperateLocalPost: false,
      canOperateLodgingData: false,
      duplicateLocation: '',
      hasGoogleUpdated: false,
      hasPendingEdits: false,
      hasVoiceOfMerchant: false,
      mapsUri: '',
      newReviewUri: '',
      placeId: ''
    },
    moreHours: [
      {
        hoursTypeId: '',
        periods: [
          {
            closeDay: '',
            closeTime: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
            openDay: '',
            openTime: {}
          }
        ]
      }
    ],
    name: '',
    openInfo: {canReopen: false, openingDate: {day: 0, month: 0, year: 0}, status: ''},
    phoneNumbers: {additionalPhones: [], primaryPhone: ''},
    profile: {description: ''},
    regularHours: {periods: [{}]},
    relationshipData: {
      childrenLocations: [{placeId: '', relationType: ''}],
      parentChain: '',
      parentLocation: {}
    },
    serviceArea: {
      businessType: '',
      places: {placeInfos: [{placeId: '', placeName: ''}]},
      regionCode: ''
    },
    serviceItems: [
      {
        freeFormServiceItem: {category: '', label: {description: '', displayName: '', languageCode: ''}},
        price: {currencyCode: '', nanos: 0, units: ''},
        structuredServiceItem: {description: '', serviceTypeId: ''}
      }
    ],
    specialHours: {
      specialHourPeriods: [{closeTime: {}, closed: false, endDate: {}, openTime: {}, startDate: {}}]
    },
    storeCode: '',
    storefrontAddress: {
      addressLines: [],
      administrativeArea: '',
      languageCode: '',
      locality: '',
      organization: '',
      postalCode: '',
      recipients: [],
      regionCode: '',
      revision: 0,
      sortingCode: '',
      sublocality: ''
    },
    title: '',
    websiteUri: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:parent/locations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"adWordsLocationExtensions":{"adPhone":""},"categories":{"additionalCategories":[{"displayName":"","moreHoursTypes":[{"displayName":"","hoursTypeId":"","localizedDisplayName":""}],"name":"","serviceTypes":[{"displayName":"","serviceTypeId":""}]}],"primaryCategory":{}},"labels":[],"languageCode":"","latlng":{"latitude":"","longitude":""},"metadata":{"canDelete":false,"canHaveBusinessCalls":false,"canHaveFoodMenus":false,"canModifyServiceList":false,"canOperateHealthData":false,"canOperateLocalPost":false,"canOperateLodgingData":false,"duplicateLocation":"","hasGoogleUpdated":false,"hasPendingEdits":false,"hasVoiceOfMerchant":false,"mapsUri":"","newReviewUri":"","placeId":""},"moreHours":[{"hoursTypeId":"","periods":[{"closeDay":"","closeTime":{"hours":0,"minutes":0,"nanos":0,"seconds":0},"openDay":"","openTime":{}}]}],"name":"","openInfo":{"canReopen":false,"openingDate":{"day":0,"month":0,"year":0},"status":""},"phoneNumbers":{"additionalPhones":[],"primaryPhone":""},"profile":{"description":""},"regularHours":{"periods":[{}]},"relationshipData":{"childrenLocations":[{"placeId":"","relationType":""}],"parentChain":"","parentLocation":{}},"serviceArea":{"businessType":"","places":{"placeInfos":[{"placeId":"","placeName":""}]},"regionCode":""},"serviceItems":[{"freeFormServiceItem":{"category":"","label":{"description":"","displayName":"","languageCode":""}},"price":{"currencyCode":"","nanos":0,"units":""},"structuredServiceItem":{"description":"","serviceTypeId":""}}],"specialHours":{"specialHourPeriods":[{"closeTime":{},"closed":false,"endDate":{},"openTime":{},"startDate":{}}]},"storeCode":"","storefrontAddress":{"addressLines":[],"administrativeArea":"","languageCode":"","locality":"","organization":"","postalCode":"","recipients":[],"regionCode":"","revision":0,"sortingCode":"","sublocality":""},"title":"","websiteUri":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"adWordsLocationExtensions": @{ @"adPhone": @"" },
                              @"categories": @{ @"additionalCategories": @[ @{ @"displayName": @"", @"moreHoursTypes": @[ @{ @"displayName": @"", @"hoursTypeId": @"", @"localizedDisplayName": @"" } ], @"name": @"", @"serviceTypes": @[ @{ @"displayName": @"", @"serviceTypeId": @"" } ] } ], @"primaryCategory": @{  } },
                              @"labels": @[  ],
                              @"languageCode": @"",
                              @"latlng": @{ @"latitude": @"", @"longitude": @"" },
                              @"metadata": @{ @"canDelete": @NO, @"canHaveBusinessCalls": @NO, @"canHaveFoodMenus": @NO, @"canModifyServiceList": @NO, @"canOperateHealthData": @NO, @"canOperateLocalPost": @NO, @"canOperateLodgingData": @NO, @"duplicateLocation": @"", @"hasGoogleUpdated": @NO, @"hasPendingEdits": @NO, @"hasVoiceOfMerchant": @NO, @"mapsUri": @"", @"newReviewUri": @"", @"placeId": @"" },
                              @"moreHours": @[ @{ @"hoursTypeId": @"", @"periods": @[ @{ @"closeDay": @"", @"closeTime": @{ @"hours": @0, @"minutes": @0, @"nanos": @0, @"seconds": @0 }, @"openDay": @"", @"openTime": @{  } } ] } ],
                              @"name": @"",
                              @"openInfo": @{ @"canReopen": @NO, @"openingDate": @{ @"day": @0, @"month": @0, @"year": @0 }, @"status": @"" },
                              @"phoneNumbers": @{ @"additionalPhones": @[  ], @"primaryPhone": @"" },
                              @"profile": @{ @"description": @"" },
                              @"regularHours": @{ @"periods": @[ @{  } ] },
                              @"relationshipData": @{ @"childrenLocations": @[ @{ @"placeId": @"", @"relationType": @"" } ], @"parentChain": @"", @"parentLocation": @{  } },
                              @"serviceArea": @{ @"businessType": @"", @"places": @{ @"placeInfos": @[ @{ @"placeId": @"", @"placeName": @"" } ] }, @"regionCode": @"" },
                              @"serviceItems": @[ @{ @"freeFormServiceItem": @{ @"category": @"", @"label": @{ @"description": @"", @"displayName": @"", @"languageCode": @"" } }, @"price": @{ @"currencyCode": @"", @"nanos": @0, @"units": @"" }, @"structuredServiceItem": @{ @"description": @"", @"serviceTypeId": @"" } } ],
                              @"specialHours": @{ @"specialHourPeriods": @[ @{ @"closeTime": @{  }, @"closed": @NO, @"endDate": @{  }, @"openTime": @{  }, @"startDate": @{  } } ] },
                              @"storeCode": @"",
                              @"storefrontAddress": @{ @"addressLines": @[  ], @"administrativeArea": @"", @"languageCode": @"", @"locality": @"", @"organization": @"", @"postalCode": @"", @"recipients": @[  ], @"regionCode": @"", @"revision": @0, @"sortingCode": @"", @"sublocality": @"" },
                              @"title": @"",
                              @"websiteUri": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/locations"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:parent/locations" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/locations",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'adWordsLocationExtensions' => [
        'adPhone' => ''
    ],
    'categories' => [
        'additionalCategories' => [
                [
                                'displayName' => '',
                                'moreHoursTypes' => [
                                                                [
                                                                                                                                'displayName' => '',
                                                                                                                                'hoursTypeId' => '',
                                                                                                                                'localizedDisplayName' => ''
                                                                ]
                                ],
                                'name' => '',
                                'serviceTypes' => [
                                                                [
                                                                                                                                'displayName' => '',
                                                                                                                                'serviceTypeId' => ''
                                                                ]
                                ]
                ]
        ],
        'primaryCategory' => [
                
        ]
    ],
    'labels' => [
        
    ],
    'languageCode' => '',
    'latlng' => [
        'latitude' => '',
        'longitude' => ''
    ],
    'metadata' => [
        'canDelete' => null,
        'canHaveBusinessCalls' => null,
        'canHaveFoodMenus' => null,
        'canModifyServiceList' => null,
        'canOperateHealthData' => null,
        'canOperateLocalPost' => null,
        'canOperateLodgingData' => null,
        'duplicateLocation' => '',
        'hasGoogleUpdated' => null,
        'hasPendingEdits' => null,
        'hasVoiceOfMerchant' => null,
        'mapsUri' => '',
        'newReviewUri' => '',
        'placeId' => ''
    ],
    'moreHours' => [
        [
                'hoursTypeId' => '',
                'periods' => [
                                [
                                                                'closeDay' => '',
                                                                'closeTime' => [
                                                                                                                                'hours' => 0,
                                                                                                                                'minutes' => 0,
                                                                                                                                'nanos' => 0,
                                                                                                                                'seconds' => 0
                                                                ],
                                                                'openDay' => '',
                                                                'openTime' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ]
    ],
    'name' => '',
    'openInfo' => [
        'canReopen' => null,
        'openingDate' => [
                'day' => 0,
                'month' => 0,
                'year' => 0
        ],
        'status' => ''
    ],
    'phoneNumbers' => [
        'additionalPhones' => [
                
        ],
        'primaryPhone' => ''
    ],
    'profile' => [
        'description' => ''
    ],
    'regularHours' => [
        'periods' => [
                [
                                
                ]
        ]
    ],
    'relationshipData' => [
        'childrenLocations' => [
                [
                                'placeId' => '',
                                'relationType' => ''
                ]
        ],
        'parentChain' => '',
        'parentLocation' => [
                
        ]
    ],
    'serviceArea' => [
        'businessType' => '',
        'places' => [
                'placeInfos' => [
                                [
                                                                'placeId' => '',
                                                                'placeName' => ''
                                ]
                ]
        ],
        'regionCode' => ''
    ],
    'serviceItems' => [
        [
                'freeFormServiceItem' => [
                                'category' => '',
                                'label' => [
                                                                'description' => '',
                                                                'displayName' => '',
                                                                'languageCode' => ''
                                ]
                ],
                'price' => [
                                'currencyCode' => '',
                                'nanos' => 0,
                                'units' => ''
                ],
                'structuredServiceItem' => [
                                'description' => '',
                                'serviceTypeId' => ''
                ]
        ]
    ],
    'specialHours' => [
        'specialHourPeriods' => [
                [
                                'closeTime' => [
                                                                
                                ],
                                'closed' => null,
                                'endDate' => [
                                                                
                                ],
                                'openTime' => [
                                                                
                                ],
                                'startDate' => [
                                                                
                                ]
                ]
        ]
    ],
    'storeCode' => '',
    'storefrontAddress' => [
        'addressLines' => [
                
        ],
        'administrativeArea' => '',
        'languageCode' => '',
        'locality' => '',
        'organization' => '',
        'postalCode' => '',
        'recipients' => [
                
        ],
        'regionCode' => '',
        'revision' => 0,
        'sortingCode' => '',
        'sublocality' => ''
    ],
    'title' => '',
    'websiteUri' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/locations', [
  'body' => '{
  "adWordsLocationExtensions": {
    "adPhone": ""
  },
  "categories": {
    "additionalCategories": [
      {
        "displayName": "",
        "moreHoursTypes": [
          {
            "displayName": "",
            "hoursTypeId": "",
            "localizedDisplayName": ""
          }
        ],
        "name": "",
        "serviceTypes": [
          {
            "displayName": "",
            "serviceTypeId": ""
          }
        ]
      }
    ],
    "primaryCategory": {}
  },
  "labels": [],
  "languageCode": "",
  "latlng": {
    "latitude": "",
    "longitude": ""
  },
  "metadata": {
    "canDelete": false,
    "canHaveBusinessCalls": false,
    "canHaveFoodMenus": false,
    "canModifyServiceList": false,
    "canOperateHealthData": false,
    "canOperateLocalPost": false,
    "canOperateLodgingData": false,
    "duplicateLocation": "",
    "hasGoogleUpdated": false,
    "hasPendingEdits": false,
    "hasVoiceOfMerchant": false,
    "mapsUri": "",
    "newReviewUri": "",
    "placeId": ""
  },
  "moreHours": [
    {
      "hoursTypeId": "",
      "periods": [
        {
          "closeDay": "",
          "closeTime": {
            "hours": 0,
            "minutes": 0,
            "nanos": 0,
            "seconds": 0
          },
          "openDay": "",
          "openTime": {}
        }
      ]
    }
  ],
  "name": "",
  "openInfo": {
    "canReopen": false,
    "openingDate": {
      "day": 0,
      "month": 0,
      "year": 0
    },
    "status": ""
  },
  "phoneNumbers": {
    "additionalPhones": [],
    "primaryPhone": ""
  },
  "profile": {
    "description": ""
  },
  "regularHours": {
    "periods": [
      {}
    ]
  },
  "relationshipData": {
    "childrenLocations": [
      {
        "placeId": "",
        "relationType": ""
      }
    ],
    "parentChain": "",
    "parentLocation": {}
  },
  "serviceArea": {
    "businessType": "",
    "places": {
      "placeInfos": [
        {
          "placeId": "",
          "placeName": ""
        }
      ]
    },
    "regionCode": ""
  },
  "serviceItems": [
    {
      "freeFormServiceItem": {
        "category": "",
        "label": {
          "description": "",
          "displayName": "",
          "languageCode": ""
        }
      },
      "price": {
        "currencyCode": "",
        "nanos": 0,
        "units": ""
      },
      "structuredServiceItem": {
        "description": "",
        "serviceTypeId": ""
      }
    }
  ],
  "specialHours": {
    "specialHourPeriods": [
      {
        "closeTime": {},
        "closed": false,
        "endDate": {},
        "openTime": {},
        "startDate": {}
      }
    ]
  },
  "storeCode": "",
  "storefrontAddress": {
    "addressLines": [],
    "administrativeArea": "",
    "languageCode": "",
    "locality": "",
    "organization": "",
    "postalCode": "",
    "recipients": [],
    "regionCode": "",
    "revision": 0,
    "sortingCode": "",
    "sublocality": ""
  },
  "title": "",
  "websiteUri": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/locations');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'adWordsLocationExtensions' => [
    'adPhone' => ''
  ],
  'categories' => [
    'additionalCategories' => [
        [
                'displayName' => '',
                'moreHoursTypes' => [
                                [
                                                                'displayName' => '',
                                                                'hoursTypeId' => '',
                                                                'localizedDisplayName' => ''
                                ]
                ],
                'name' => '',
                'serviceTypes' => [
                                [
                                                                'displayName' => '',
                                                                'serviceTypeId' => ''
                                ]
                ]
        ]
    ],
    'primaryCategory' => [
        
    ]
  ],
  'labels' => [
    
  ],
  'languageCode' => '',
  'latlng' => [
    'latitude' => '',
    'longitude' => ''
  ],
  'metadata' => [
    'canDelete' => null,
    'canHaveBusinessCalls' => null,
    'canHaveFoodMenus' => null,
    'canModifyServiceList' => null,
    'canOperateHealthData' => null,
    'canOperateLocalPost' => null,
    'canOperateLodgingData' => null,
    'duplicateLocation' => '',
    'hasGoogleUpdated' => null,
    'hasPendingEdits' => null,
    'hasVoiceOfMerchant' => null,
    'mapsUri' => '',
    'newReviewUri' => '',
    'placeId' => ''
  ],
  'moreHours' => [
    [
        'hoursTypeId' => '',
        'periods' => [
                [
                                'closeDay' => '',
                                'closeTime' => [
                                                                'hours' => 0,
                                                                'minutes' => 0,
                                                                'nanos' => 0,
                                                                'seconds' => 0
                                ],
                                'openDay' => '',
                                'openTime' => [
                                                                
                                ]
                ]
        ]
    ]
  ],
  'name' => '',
  'openInfo' => [
    'canReopen' => null,
    'openingDate' => [
        'day' => 0,
        'month' => 0,
        'year' => 0
    ],
    'status' => ''
  ],
  'phoneNumbers' => [
    'additionalPhones' => [
        
    ],
    'primaryPhone' => ''
  ],
  'profile' => [
    'description' => ''
  ],
  'regularHours' => [
    'periods' => [
        [
                
        ]
    ]
  ],
  'relationshipData' => [
    'childrenLocations' => [
        [
                'placeId' => '',
                'relationType' => ''
        ]
    ],
    'parentChain' => '',
    'parentLocation' => [
        
    ]
  ],
  'serviceArea' => [
    'businessType' => '',
    'places' => [
        'placeInfos' => [
                [
                                'placeId' => '',
                                'placeName' => ''
                ]
        ]
    ],
    'regionCode' => ''
  ],
  'serviceItems' => [
    [
        'freeFormServiceItem' => [
                'category' => '',
                'label' => [
                                'description' => '',
                                'displayName' => '',
                                'languageCode' => ''
                ]
        ],
        'price' => [
                'currencyCode' => '',
                'nanos' => 0,
                'units' => ''
        ],
        'structuredServiceItem' => [
                'description' => '',
                'serviceTypeId' => ''
        ]
    ]
  ],
  'specialHours' => [
    'specialHourPeriods' => [
        [
                'closeTime' => [
                                
                ],
                'closed' => null,
                'endDate' => [
                                
                ],
                'openTime' => [
                                
                ],
                'startDate' => [
                                
                ]
        ]
    ]
  ],
  'storeCode' => '',
  'storefrontAddress' => [
    'addressLines' => [
        
    ],
    'administrativeArea' => '',
    'languageCode' => '',
    'locality' => '',
    'organization' => '',
    'postalCode' => '',
    'recipients' => [
        
    ],
    'regionCode' => '',
    'revision' => 0,
    'sortingCode' => '',
    'sublocality' => ''
  ],
  'title' => '',
  'websiteUri' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'adWordsLocationExtensions' => [
    'adPhone' => ''
  ],
  'categories' => [
    'additionalCategories' => [
        [
                'displayName' => '',
                'moreHoursTypes' => [
                                [
                                                                'displayName' => '',
                                                                'hoursTypeId' => '',
                                                                'localizedDisplayName' => ''
                                ]
                ],
                'name' => '',
                'serviceTypes' => [
                                [
                                                                'displayName' => '',
                                                                'serviceTypeId' => ''
                                ]
                ]
        ]
    ],
    'primaryCategory' => [
        
    ]
  ],
  'labels' => [
    
  ],
  'languageCode' => '',
  'latlng' => [
    'latitude' => '',
    'longitude' => ''
  ],
  'metadata' => [
    'canDelete' => null,
    'canHaveBusinessCalls' => null,
    'canHaveFoodMenus' => null,
    'canModifyServiceList' => null,
    'canOperateHealthData' => null,
    'canOperateLocalPost' => null,
    'canOperateLodgingData' => null,
    'duplicateLocation' => '',
    'hasGoogleUpdated' => null,
    'hasPendingEdits' => null,
    'hasVoiceOfMerchant' => null,
    'mapsUri' => '',
    'newReviewUri' => '',
    'placeId' => ''
  ],
  'moreHours' => [
    [
        'hoursTypeId' => '',
        'periods' => [
                [
                                'closeDay' => '',
                                'closeTime' => [
                                                                'hours' => 0,
                                                                'minutes' => 0,
                                                                'nanos' => 0,
                                                                'seconds' => 0
                                ],
                                'openDay' => '',
                                'openTime' => [
                                                                
                                ]
                ]
        ]
    ]
  ],
  'name' => '',
  'openInfo' => [
    'canReopen' => null,
    'openingDate' => [
        'day' => 0,
        'month' => 0,
        'year' => 0
    ],
    'status' => ''
  ],
  'phoneNumbers' => [
    'additionalPhones' => [
        
    ],
    'primaryPhone' => ''
  ],
  'profile' => [
    'description' => ''
  ],
  'regularHours' => [
    'periods' => [
        [
                
        ]
    ]
  ],
  'relationshipData' => [
    'childrenLocations' => [
        [
                'placeId' => '',
                'relationType' => ''
        ]
    ],
    'parentChain' => '',
    'parentLocation' => [
        
    ]
  ],
  'serviceArea' => [
    'businessType' => '',
    'places' => [
        'placeInfos' => [
                [
                                'placeId' => '',
                                'placeName' => ''
                ]
        ]
    ],
    'regionCode' => ''
  ],
  'serviceItems' => [
    [
        'freeFormServiceItem' => [
                'category' => '',
                'label' => [
                                'description' => '',
                                'displayName' => '',
                                'languageCode' => ''
                ]
        ],
        'price' => [
                'currencyCode' => '',
                'nanos' => 0,
                'units' => ''
        ],
        'structuredServiceItem' => [
                'description' => '',
                'serviceTypeId' => ''
        ]
    ]
  ],
  'specialHours' => [
    'specialHourPeriods' => [
        [
                'closeTime' => [
                                
                ],
                'closed' => null,
                'endDate' => [
                                
                ],
                'openTime' => [
                                
                ],
                'startDate' => [
                                
                ]
        ]
    ]
  ],
  'storeCode' => '',
  'storefrontAddress' => [
    'addressLines' => [
        
    ],
    'administrativeArea' => '',
    'languageCode' => '',
    'locality' => '',
    'organization' => '',
    'postalCode' => '',
    'recipients' => [
        
    ],
    'regionCode' => '',
    'revision' => 0,
    'sortingCode' => '',
    'sublocality' => ''
  ],
  'title' => '',
  'websiteUri' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/locations');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/locations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "adWordsLocationExtensions": {
    "adPhone": ""
  },
  "categories": {
    "additionalCategories": [
      {
        "displayName": "",
        "moreHoursTypes": [
          {
            "displayName": "",
            "hoursTypeId": "",
            "localizedDisplayName": ""
          }
        ],
        "name": "",
        "serviceTypes": [
          {
            "displayName": "",
            "serviceTypeId": ""
          }
        ]
      }
    ],
    "primaryCategory": {}
  },
  "labels": [],
  "languageCode": "",
  "latlng": {
    "latitude": "",
    "longitude": ""
  },
  "metadata": {
    "canDelete": false,
    "canHaveBusinessCalls": false,
    "canHaveFoodMenus": false,
    "canModifyServiceList": false,
    "canOperateHealthData": false,
    "canOperateLocalPost": false,
    "canOperateLodgingData": false,
    "duplicateLocation": "",
    "hasGoogleUpdated": false,
    "hasPendingEdits": false,
    "hasVoiceOfMerchant": false,
    "mapsUri": "",
    "newReviewUri": "",
    "placeId": ""
  },
  "moreHours": [
    {
      "hoursTypeId": "",
      "periods": [
        {
          "closeDay": "",
          "closeTime": {
            "hours": 0,
            "minutes": 0,
            "nanos": 0,
            "seconds": 0
          },
          "openDay": "",
          "openTime": {}
        }
      ]
    }
  ],
  "name": "",
  "openInfo": {
    "canReopen": false,
    "openingDate": {
      "day": 0,
      "month": 0,
      "year": 0
    },
    "status": ""
  },
  "phoneNumbers": {
    "additionalPhones": [],
    "primaryPhone": ""
  },
  "profile": {
    "description": ""
  },
  "regularHours": {
    "periods": [
      {}
    ]
  },
  "relationshipData": {
    "childrenLocations": [
      {
        "placeId": "",
        "relationType": ""
      }
    ],
    "parentChain": "",
    "parentLocation": {}
  },
  "serviceArea": {
    "businessType": "",
    "places": {
      "placeInfos": [
        {
          "placeId": "",
          "placeName": ""
        }
      ]
    },
    "regionCode": ""
  },
  "serviceItems": [
    {
      "freeFormServiceItem": {
        "category": "",
        "label": {
          "description": "",
          "displayName": "",
          "languageCode": ""
        }
      },
      "price": {
        "currencyCode": "",
        "nanos": 0,
        "units": ""
      },
      "structuredServiceItem": {
        "description": "",
        "serviceTypeId": ""
      }
    }
  ],
  "specialHours": {
    "specialHourPeriods": [
      {
        "closeTime": {},
        "closed": false,
        "endDate": {},
        "openTime": {},
        "startDate": {}
      }
    ]
  },
  "storeCode": "",
  "storefrontAddress": {
    "addressLines": [],
    "administrativeArea": "",
    "languageCode": "",
    "locality": "",
    "organization": "",
    "postalCode": "",
    "recipients": [],
    "regionCode": "",
    "revision": 0,
    "sortingCode": "",
    "sublocality": ""
  },
  "title": "",
  "websiteUri": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/locations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "adWordsLocationExtensions": {
    "adPhone": ""
  },
  "categories": {
    "additionalCategories": [
      {
        "displayName": "",
        "moreHoursTypes": [
          {
            "displayName": "",
            "hoursTypeId": "",
            "localizedDisplayName": ""
          }
        ],
        "name": "",
        "serviceTypes": [
          {
            "displayName": "",
            "serviceTypeId": ""
          }
        ]
      }
    ],
    "primaryCategory": {}
  },
  "labels": [],
  "languageCode": "",
  "latlng": {
    "latitude": "",
    "longitude": ""
  },
  "metadata": {
    "canDelete": false,
    "canHaveBusinessCalls": false,
    "canHaveFoodMenus": false,
    "canModifyServiceList": false,
    "canOperateHealthData": false,
    "canOperateLocalPost": false,
    "canOperateLodgingData": false,
    "duplicateLocation": "",
    "hasGoogleUpdated": false,
    "hasPendingEdits": false,
    "hasVoiceOfMerchant": false,
    "mapsUri": "",
    "newReviewUri": "",
    "placeId": ""
  },
  "moreHours": [
    {
      "hoursTypeId": "",
      "periods": [
        {
          "closeDay": "",
          "closeTime": {
            "hours": 0,
            "minutes": 0,
            "nanos": 0,
            "seconds": 0
          },
          "openDay": "",
          "openTime": {}
        }
      ]
    }
  ],
  "name": "",
  "openInfo": {
    "canReopen": false,
    "openingDate": {
      "day": 0,
      "month": 0,
      "year": 0
    },
    "status": ""
  },
  "phoneNumbers": {
    "additionalPhones": [],
    "primaryPhone": ""
  },
  "profile": {
    "description": ""
  },
  "regularHours": {
    "periods": [
      {}
    ]
  },
  "relationshipData": {
    "childrenLocations": [
      {
        "placeId": "",
        "relationType": ""
      }
    ],
    "parentChain": "",
    "parentLocation": {}
  },
  "serviceArea": {
    "businessType": "",
    "places": {
      "placeInfos": [
        {
          "placeId": "",
          "placeName": ""
        }
      ]
    },
    "regionCode": ""
  },
  "serviceItems": [
    {
      "freeFormServiceItem": {
        "category": "",
        "label": {
          "description": "",
          "displayName": "",
          "languageCode": ""
        }
      },
      "price": {
        "currencyCode": "",
        "nanos": 0,
        "units": ""
      },
      "structuredServiceItem": {
        "description": "",
        "serviceTypeId": ""
      }
    }
  ],
  "specialHours": {
    "specialHourPeriods": [
      {
        "closeTime": {},
        "closed": false,
        "endDate": {},
        "openTime": {},
        "startDate": {}
      }
    ]
  },
  "storeCode": "",
  "storefrontAddress": {
    "addressLines": [],
    "administrativeArea": "",
    "languageCode": "",
    "locality": "",
    "organization": "",
    "postalCode": "",
    "recipients": [],
    "regionCode": "",
    "revision": 0,
    "sortingCode": "",
    "sublocality": ""
  },
  "title": "",
  "websiteUri": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/:parent/locations", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:parent/locations"

payload = {
    "adWordsLocationExtensions": { "adPhone": "" },
    "categories": {
        "additionalCategories": [
            {
                "displayName": "",
                "moreHoursTypes": [
                    {
                        "displayName": "",
                        "hoursTypeId": "",
                        "localizedDisplayName": ""
                    }
                ],
                "name": "",
                "serviceTypes": [
                    {
                        "displayName": "",
                        "serviceTypeId": ""
                    }
                ]
            }
        ],
        "primaryCategory": {}
    },
    "labels": [],
    "languageCode": "",
    "latlng": {
        "latitude": "",
        "longitude": ""
    },
    "metadata": {
        "canDelete": False,
        "canHaveBusinessCalls": False,
        "canHaveFoodMenus": False,
        "canModifyServiceList": False,
        "canOperateHealthData": False,
        "canOperateLocalPost": False,
        "canOperateLodgingData": False,
        "duplicateLocation": "",
        "hasGoogleUpdated": False,
        "hasPendingEdits": False,
        "hasVoiceOfMerchant": False,
        "mapsUri": "",
        "newReviewUri": "",
        "placeId": ""
    },
    "moreHours": [
        {
            "hoursTypeId": "",
            "periods": [
                {
                    "closeDay": "",
                    "closeTime": {
                        "hours": 0,
                        "minutes": 0,
                        "nanos": 0,
                        "seconds": 0
                    },
                    "openDay": "",
                    "openTime": {}
                }
            ]
        }
    ],
    "name": "",
    "openInfo": {
        "canReopen": False,
        "openingDate": {
            "day": 0,
            "month": 0,
            "year": 0
        },
        "status": ""
    },
    "phoneNumbers": {
        "additionalPhones": [],
        "primaryPhone": ""
    },
    "profile": { "description": "" },
    "regularHours": { "periods": [{}] },
    "relationshipData": {
        "childrenLocations": [
            {
                "placeId": "",
                "relationType": ""
            }
        ],
        "parentChain": "",
        "parentLocation": {}
    },
    "serviceArea": {
        "businessType": "",
        "places": { "placeInfos": [
                {
                    "placeId": "",
                    "placeName": ""
                }
            ] },
        "regionCode": ""
    },
    "serviceItems": [
        {
            "freeFormServiceItem": {
                "category": "",
                "label": {
                    "description": "",
                    "displayName": "",
                    "languageCode": ""
                }
            },
            "price": {
                "currencyCode": "",
                "nanos": 0,
                "units": ""
            },
            "structuredServiceItem": {
                "description": "",
                "serviceTypeId": ""
            }
        }
    ],
    "specialHours": { "specialHourPeriods": [
            {
                "closeTime": {},
                "closed": False,
                "endDate": {},
                "openTime": {},
                "startDate": {}
            }
        ] },
    "storeCode": "",
    "storefrontAddress": {
        "addressLines": [],
        "administrativeArea": "",
        "languageCode": "",
        "locality": "",
        "organization": "",
        "postalCode": "",
        "recipients": [],
        "regionCode": "",
        "revision": 0,
        "sortingCode": "",
        "sublocality": ""
    },
    "title": "",
    "websiteUri": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:parent/locations"

payload <- "{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:parent/locations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/:parent/locations') do |req|
  req.body = "{\n  \"adWordsLocationExtensions\": {\n    \"adPhone\": \"\"\n  },\n  \"categories\": {\n    \"additionalCategories\": [\n      {\n        \"displayName\": \"\",\n        \"moreHoursTypes\": [\n          {\n            \"displayName\": \"\",\n            \"hoursTypeId\": \"\",\n            \"localizedDisplayName\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"serviceTypes\": [\n          {\n            \"displayName\": \"\",\n            \"serviceTypeId\": \"\"\n          }\n        ]\n      }\n    ],\n    \"primaryCategory\": {}\n  },\n  \"labels\": [],\n  \"languageCode\": \"\",\n  \"latlng\": {\n    \"latitude\": \"\",\n    \"longitude\": \"\"\n  },\n  \"metadata\": {\n    \"canDelete\": false,\n    \"canHaveBusinessCalls\": false,\n    \"canHaveFoodMenus\": false,\n    \"canModifyServiceList\": false,\n    \"canOperateHealthData\": false,\n    \"canOperateLocalPost\": false,\n    \"canOperateLodgingData\": false,\n    \"duplicateLocation\": \"\",\n    \"hasGoogleUpdated\": false,\n    \"hasPendingEdits\": false,\n    \"hasVoiceOfMerchant\": false,\n    \"mapsUri\": \"\",\n    \"newReviewUri\": \"\",\n    \"placeId\": \"\"\n  },\n  \"moreHours\": [\n    {\n      \"hoursTypeId\": \"\",\n      \"periods\": [\n        {\n          \"closeDay\": \"\",\n          \"closeTime\": {\n            \"hours\": 0,\n            \"minutes\": 0,\n            \"nanos\": 0,\n            \"seconds\": 0\n          },\n          \"openDay\": \"\",\n          \"openTime\": {}\n        }\n      ]\n    }\n  ],\n  \"name\": \"\",\n  \"openInfo\": {\n    \"canReopen\": false,\n    \"openingDate\": {\n      \"day\": 0,\n      \"month\": 0,\n      \"year\": 0\n    },\n    \"status\": \"\"\n  },\n  \"phoneNumbers\": {\n    \"additionalPhones\": [],\n    \"primaryPhone\": \"\"\n  },\n  \"profile\": {\n    \"description\": \"\"\n  },\n  \"regularHours\": {\n    \"periods\": [\n      {}\n    ]\n  },\n  \"relationshipData\": {\n    \"childrenLocations\": [\n      {\n        \"placeId\": \"\",\n        \"relationType\": \"\"\n      }\n    ],\n    \"parentChain\": \"\",\n    \"parentLocation\": {}\n  },\n  \"serviceArea\": {\n    \"businessType\": \"\",\n    \"places\": {\n      \"placeInfos\": [\n        {\n          \"placeId\": \"\",\n          \"placeName\": \"\"\n        }\n      ]\n    },\n    \"regionCode\": \"\"\n  },\n  \"serviceItems\": [\n    {\n      \"freeFormServiceItem\": {\n        \"category\": \"\",\n        \"label\": {\n          \"description\": \"\",\n          \"displayName\": \"\",\n          \"languageCode\": \"\"\n        }\n      },\n      \"price\": {\n        \"currencyCode\": \"\",\n        \"nanos\": 0,\n        \"units\": \"\"\n      },\n      \"structuredServiceItem\": {\n        \"description\": \"\",\n        \"serviceTypeId\": \"\"\n      }\n    }\n  ],\n  \"specialHours\": {\n    \"specialHourPeriods\": [\n      {\n        \"closeTime\": {},\n        \"closed\": false,\n        \"endDate\": {},\n        \"openTime\": {},\n        \"startDate\": {}\n      }\n    ]\n  },\n  \"storeCode\": \"\",\n  \"storefrontAddress\": {\n    \"addressLines\": [],\n    \"administrativeArea\": \"\",\n    \"languageCode\": \"\",\n    \"locality\": \"\",\n    \"organization\": \"\",\n    \"postalCode\": \"\",\n    \"recipients\": [],\n    \"regionCode\": \"\",\n    \"revision\": 0,\n    \"sortingCode\": \"\",\n    \"sublocality\": \"\"\n  },\n  \"title\": \"\",\n  \"websiteUri\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:parent/locations";

    let payload = json!({
        "adWordsLocationExtensions": json!({"adPhone": ""}),
        "categories": json!({
            "additionalCategories": (
                json!({
                    "displayName": "",
                    "moreHoursTypes": (
                        json!({
                            "displayName": "",
                            "hoursTypeId": "",
                            "localizedDisplayName": ""
                        })
                    ),
                    "name": "",
                    "serviceTypes": (
                        json!({
                            "displayName": "",
                            "serviceTypeId": ""
                        })
                    )
                })
            ),
            "primaryCategory": json!({})
        }),
        "labels": (),
        "languageCode": "",
        "latlng": json!({
            "latitude": "",
            "longitude": ""
        }),
        "metadata": json!({
            "canDelete": false,
            "canHaveBusinessCalls": false,
            "canHaveFoodMenus": false,
            "canModifyServiceList": false,
            "canOperateHealthData": false,
            "canOperateLocalPost": false,
            "canOperateLodgingData": false,
            "duplicateLocation": "",
            "hasGoogleUpdated": false,
            "hasPendingEdits": false,
            "hasVoiceOfMerchant": false,
            "mapsUri": "",
            "newReviewUri": "",
            "placeId": ""
        }),
        "moreHours": (
            json!({
                "hoursTypeId": "",
                "periods": (
                    json!({
                        "closeDay": "",
                        "closeTime": json!({
                            "hours": 0,
                            "minutes": 0,
                            "nanos": 0,
                            "seconds": 0
                        }),
                        "openDay": "",
                        "openTime": json!({})
                    })
                )
            })
        ),
        "name": "",
        "openInfo": json!({
            "canReopen": false,
            "openingDate": json!({
                "day": 0,
                "month": 0,
                "year": 0
            }),
            "status": ""
        }),
        "phoneNumbers": json!({
            "additionalPhones": (),
            "primaryPhone": ""
        }),
        "profile": json!({"description": ""}),
        "regularHours": json!({"periods": (json!({}))}),
        "relationshipData": json!({
            "childrenLocations": (
                json!({
                    "placeId": "",
                    "relationType": ""
                })
            ),
            "parentChain": "",
            "parentLocation": json!({})
        }),
        "serviceArea": json!({
            "businessType": "",
            "places": json!({"placeInfos": (
                    json!({
                        "placeId": "",
                        "placeName": ""
                    })
                )}),
            "regionCode": ""
        }),
        "serviceItems": (
            json!({
                "freeFormServiceItem": json!({
                    "category": "",
                    "label": json!({
                        "description": "",
                        "displayName": "",
                        "languageCode": ""
                    })
                }),
                "price": json!({
                    "currencyCode": "",
                    "nanos": 0,
                    "units": ""
                }),
                "structuredServiceItem": json!({
                    "description": "",
                    "serviceTypeId": ""
                })
            })
        ),
        "specialHours": json!({"specialHourPeriods": (
                json!({
                    "closeTime": json!({}),
                    "closed": false,
                    "endDate": json!({}),
                    "openTime": json!({}),
                    "startDate": json!({})
                })
            )}),
        "storeCode": "",
        "storefrontAddress": json!({
            "addressLines": (),
            "administrativeArea": "",
            "languageCode": "",
            "locality": "",
            "organization": "",
            "postalCode": "",
            "recipients": (),
            "regionCode": "",
            "revision": 0,
            "sortingCode": "",
            "sublocality": ""
        }),
        "title": "",
        "websiteUri": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/:parent/locations \
  --header 'content-type: application/json' \
  --data '{
  "adWordsLocationExtensions": {
    "adPhone": ""
  },
  "categories": {
    "additionalCategories": [
      {
        "displayName": "",
        "moreHoursTypes": [
          {
            "displayName": "",
            "hoursTypeId": "",
            "localizedDisplayName": ""
          }
        ],
        "name": "",
        "serviceTypes": [
          {
            "displayName": "",
            "serviceTypeId": ""
          }
        ]
      }
    ],
    "primaryCategory": {}
  },
  "labels": [],
  "languageCode": "",
  "latlng": {
    "latitude": "",
    "longitude": ""
  },
  "metadata": {
    "canDelete": false,
    "canHaveBusinessCalls": false,
    "canHaveFoodMenus": false,
    "canModifyServiceList": false,
    "canOperateHealthData": false,
    "canOperateLocalPost": false,
    "canOperateLodgingData": false,
    "duplicateLocation": "",
    "hasGoogleUpdated": false,
    "hasPendingEdits": false,
    "hasVoiceOfMerchant": false,
    "mapsUri": "",
    "newReviewUri": "",
    "placeId": ""
  },
  "moreHours": [
    {
      "hoursTypeId": "",
      "periods": [
        {
          "closeDay": "",
          "closeTime": {
            "hours": 0,
            "minutes": 0,
            "nanos": 0,
            "seconds": 0
          },
          "openDay": "",
          "openTime": {}
        }
      ]
    }
  ],
  "name": "",
  "openInfo": {
    "canReopen": false,
    "openingDate": {
      "day": 0,
      "month": 0,
      "year": 0
    },
    "status": ""
  },
  "phoneNumbers": {
    "additionalPhones": [],
    "primaryPhone": ""
  },
  "profile": {
    "description": ""
  },
  "regularHours": {
    "periods": [
      {}
    ]
  },
  "relationshipData": {
    "childrenLocations": [
      {
        "placeId": "",
        "relationType": ""
      }
    ],
    "parentChain": "",
    "parentLocation": {}
  },
  "serviceArea": {
    "businessType": "",
    "places": {
      "placeInfos": [
        {
          "placeId": "",
          "placeName": ""
        }
      ]
    },
    "regionCode": ""
  },
  "serviceItems": [
    {
      "freeFormServiceItem": {
        "category": "",
        "label": {
          "description": "",
          "displayName": "",
          "languageCode": ""
        }
      },
      "price": {
        "currencyCode": "",
        "nanos": 0,
        "units": ""
      },
      "structuredServiceItem": {
        "description": "",
        "serviceTypeId": ""
      }
    }
  ],
  "specialHours": {
    "specialHourPeriods": [
      {
        "closeTime": {},
        "closed": false,
        "endDate": {},
        "openTime": {},
        "startDate": {}
      }
    ]
  },
  "storeCode": "",
  "storefrontAddress": {
    "addressLines": [],
    "administrativeArea": "",
    "languageCode": "",
    "locality": "",
    "organization": "",
    "postalCode": "",
    "recipients": [],
    "regionCode": "",
    "revision": 0,
    "sortingCode": "",
    "sublocality": ""
  },
  "title": "",
  "websiteUri": ""
}'
echo '{
  "adWordsLocationExtensions": {
    "adPhone": ""
  },
  "categories": {
    "additionalCategories": [
      {
        "displayName": "",
        "moreHoursTypes": [
          {
            "displayName": "",
            "hoursTypeId": "",
            "localizedDisplayName": ""
          }
        ],
        "name": "",
        "serviceTypes": [
          {
            "displayName": "",
            "serviceTypeId": ""
          }
        ]
      }
    ],
    "primaryCategory": {}
  },
  "labels": [],
  "languageCode": "",
  "latlng": {
    "latitude": "",
    "longitude": ""
  },
  "metadata": {
    "canDelete": false,
    "canHaveBusinessCalls": false,
    "canHaveFoodMenus": false,
    "canModifyServiceList": false,
    "canOperateHealthData": false,
    "canOperateLocalPost": false,
    "canOperateLodgingData": false,
    "duplicateLocation": "",
    "hasGoogleUpdated": false,
    "hasPendingEdits": false,
    "hasVoiceOfMerchant": false,
    "mapsUri": "",
    "newReviewUri": "",
    "placeId": ""
  },
  "moreHours": [
    {
      "hoursTypeId": "",
      "periods": [
        {
          "closeDay": "",
          "closeTime": {
            "hours": 0,
            "minutes": 0,
            "nanos": 0,
            "seconds": 0
          },
          "openDay": "",
          "openTime": {}
        }
      ]
    }
  ],
  "name": "",
  "openInfo": {
    "canReopen": false,
    "openingDate": {
      "day": 0,
      "month": 0,
      "year": 0
    },
    "status": ""
  },
  "phoneNumbers": {
    "additionalPhones": [],
    "primaryPhone": ""
  },
  "profile": {
    "description": ""
  },
  "regularHours": {
    "periods": [
      {}
    ]
  },
  "relationshipData": {
    "childrenLocations": [
      {
        "placeId": "",
        "relationType": ""
      }
    ],
    "parentChain": "",
    "parentLocation": {}
  },
  "serviceArea": {
    "businessType": "",
    "places": {
      "placeInfos": [
        {
          "placeId": "",
          "placeName": ""
        }
      ]
    },
    "regionCode": ""
  },
  "serviceItems": [
    {
      "freeFormServiceItem": {
        "category": "",
        "label": {
          "description": "",
          "displayName": "",
          "languageCode": ""
        }
      },
      "price": {
        "currencyCode": "",
        "nanos": 0,
        "units": ""
      },
      "structuredServiceItem": {
        "description": "",
        "serviceTypeId": ""
      }
    }
  ],
  "specialHours": {
    "specialHourPeriods": [
      {
        "closeTime": {},
        "closed": false,
        "endDate": {},
        "openTime": {},
        "startDate": {}
      }
    ]
  },
  "storeCode": "",
  "storefrontAddress": {
    "addressLines": [],
    "administrativeArea": "",
    "languageCode": "",
    "locality": "",
    "organization": "",
    "postalCode": "",
    "recipients": [],
    "regionCode": "",
    "revision": 0,
    "sortingCode": "",
    "sublocality": ""
  },
  "title": "",
  "websiteUri": ""
}' |  \
  http POST {{baseUrl}}/v1/:parent/locations \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "adWordsLocationExtensions": {\n    "adPhone": ""\n  },\n  "categories": {\n    "additionalCategories": [\n      {\n        "displayName": "",\n        "moreHoursTypes": [\n          {\n            "displayName": "",\n            "hoursTypeId": "",\n            "localizedDisplayName": ""\n          }\n        ],\n        "name": "",\n        "serviceTypes": [\n          {\n            "displayName": "",\n            "serviceTypeId": ""\n          }\n        ]\n      }\n    ],\n    "primaryCategory": {}\n  },\n  "labels": [],\n  "languageCode": "",\n  "latlng": {\n    "latitude": "",\n    "longitude": ""\n  },\n  "metadata": {\n    "canDelete": false,\n    "canHaveBusinessCalls": false,\n    "canHaveFoodMenus": false,\n    "canModifyServiceList": false,\n    "canOperateHealthData": false,\n    "canOperateLocalPost": false,\n    "canOperateLodgingData": false,\n    "duplicateLocation": "",\n    "hasGoogleUpdated": false,\n    "hasPendingEdits": false,\n    "hasVoiceOfMerchant": false,\n    "mapsUri": "",\n    "newReviewUri": "",\n    "placeId": ""\n  },\n  "moreHours": [\n    {\n      "hoursTypeId": "",\n      "periods": [\n        {\n          "closeDay": "",\n          "closeTime": {\n            "hours": 0,\n            "minutes": 0,\n            "nanos": 0,\n            "seconds": 0\n          },\n          "openDay": "",\n          "openTime": {}\n        }\n      ]\n    }\n  ],\n  "name": "",\n  "openInfo": {\n    "canReopen": false,\n    "openingDate": {\n      "day": 0,\n      "month": 0,\n      "year": 0\n    },\n    "status": ""\n  },\n  "phoneNumbers": {\n    "additionalPhones": [],\n    "primaryPhone": ""\n  },\n  "profile": {\n    "description": ""\n  },\n  "regularHours": {\n    "periods": [\n      {}\n    ]\n  },\n  "relationshipData": {\n    "childrenLocations": [\n      {\n        "placeId": "",\n        "relationType": ""\n      }\n    ],\n    "parentChain": "",\n    "parentLocation": {}\n  },\n  "serviceArea": {\n    "businessType": "",\n    "places": {\n      "placeInfos": [\n        {\n          "placeId": "",\n          "placeName": ""\n        }\n      ]\n    },\n    "regionCode": ""\n  },\n  "serviceItems": [\n    {\n      "freeFormServiceItem": {\n        "category": "",\n        "label": {\n          "description": "",\n          "displayName": "",\n          "languageCode": ""\n        }\n      },\n      "price": {\n        "currencyCode": "",\n        "nanos": 0,\n        "units": ""\n      },\n      "structuredServiceItem": {\n        "description": "",\n        "serviceTypeId": ""\n      }\n    }\n  ],\n  "specialHours": {\n    "specialHourPeriods": [\n      {\n        "closeTime": {},\n        "closed": false,\n        "endDate": {},\n        "openTime": {},\n        "startDate": {}\n      }\n    ]\n  },\n  "storeCode": "",\n  "storefrontAddress": {\n    "addressLines": [],\n    "administrativeArea": "",\n    "languageCode": "",\n    "locality": "",\n    "organization": "",\n    "postalCode": "",\n    "recipients": [],\n    "regionCode": "",\n    "revision": 0,\n    "sortingCode": "",\n    "sublocality": ""\n  },\n  "title": "",\n  "websiteUri": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/:parent/locations
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "adWordsLocationExtensions": ["adPhone": ""],
  "categories": [
    "additionalCategories": [
      [
        "displayName": "",
        "moreHoursTypes": [
          [
            "displayName": "",
            "hoursTypeId": "",
            "localizedDisplayName": ""
          ]
        ],
        "name": "",
        "serviceTypes": [
          [
            "displayName": "",
            "serviceTypeId": ""
          ]
        ]
      ]
    ],
    "primaryCategory": []
  ],
  "labels": [],
  "languageCode": "",
  "latlng": [
    "latitude": "",
    "longitude": ""
  ],
  "metadata": [
    "canDelete": false,
    "canHaveBusinessCalls": false,
    "canHaveFoodMenus": false,
    "canModifyServiceList": false,
    "canOperateHealthData": false,
    "canOperateLocalPost": false,
    "canOperateLodgingData": false,
    "duplicateLocation": "",
    "hasGoogleUpdated": false,
    "hasPendingEdits": false,
    "hasVoiceOfMerchant": false,
    "mapsUri": "",
    "newReviewUri": "",
    "placeId": ""
  ],
  "moreHours": [
    [
      "hoursTypeId": "",
      "periods": [
        [
          "closeDay": "",
          "closeTime": [
            "hours": 0,
            "minutes": 0,
            "nanos": 0,
            "seconds": 0
          ],
          "openDay": "",
          "openTime": []
        ]
      ]
    ]
  ],
  "name": "",
  "openInfo": [
    "canReopen": false,
    "openingDate": [
      "day": 0,
      "month": 0,
      "year": 0
    ],
    "status": ""
  ],
  "phoneNumbers": [
    "additionalPhones": [],
    "primaryPhone": ""
  ],
  "profile": ["description": ""],
  "regularHours": ["periods": [[]]],
  "relationshipData": [
    "childrenLocations": [
      [
        "placeId": "",
        "relationType": ""
      ]
    ],
    "parentChain": "",
    "parentLocation": []
  ],
  "serviceArea": [
    "businessType": "",
    "places": ["placeInfos": [
        [
          "placeId": "",
          "placeName": ""
        ]
      ]],
    "regionCode": ""
  ],
  "serviceItems": [
    [
      "freeFormServiceItem": [
        "category": "",
        "label": [
          "description": "",
          "displayName": "",
          "languageCode": ""
        ]
      ],
      "price": [
        "currencyCode": "",
        "nanos": 0,
        "units": ""
      ],
      "structuredServiceItem": [
        "description": "",
        "serviceTypeId": ""
      ]
    ]
  ],
  "specialHours": ["specialHourPeriods": [
      [
        "closeTime": [],
        "closed": false,
        "endDate": [],
        "openTime": [],
        "startDate": []
      ]
    ]],
  "storeCode": "",
  "storefrontAddress": [
    "addressLines": [],
    "administrativeArea": "",
    "languageCode": "",
    "locality": "",
    "organization": "",
    "postalCode": "",
    "recipients": [],
    "regionCode": "",
    "revision": 0,
    "sortingCode": "",
    "sublocality": ""
  ],
  "title": "",
  "websiteUri": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/locations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET mybusinessbusinessinformation.accounts.locations.list
{{baseUrl}}/v1/:parent/locations
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:parent/locations");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/:parent/locations")
require "http/client"

url = "{{baseUrl}}/v1/:parent/locations"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/:parent/locations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/locations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:parent/locations"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/:parent/locations HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:parent/locations")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/locations"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/locations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/locations")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/:parent/locations');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/locations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/locations';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:parent/locations',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/locations")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:parent/locations',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/locations'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/:parent/locations');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/:parent/locations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:parent/locations';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/locations"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:parent/locations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/locations",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/:parent/locations');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:parent/locations');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:parent/locations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/locations' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/locations' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/:parent/locations")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:parent/locations"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:parent/locations"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:parent/locations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/:parent/locations') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:parent/locations";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/:parent/locations
http GET {{baseUrl}}/v1/:parent/locations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:parent/locations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:parent/locations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET mybusinessbusinessinformation.attributes.list
{{baseUrl}}/v1/attributes
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/attributes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/attributes")
require "http/client"

url = "{{baseUrl}}/v1/attributes"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/attributes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/attributes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/attributes"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/attributes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/attributes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/attributes"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/attributes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/attributes")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/attributes');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/attributes'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/attributes';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/attributes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/attributes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/attributes',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/attributes'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/attributes');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/attributes'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/attributes';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/attributes"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/attributes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/attributes",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/attributes');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/attributes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/attributes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/attributes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/attributes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/attributes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/attributes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/attributes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/attributes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/attributes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/attributes";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/attributes
http GET {{baseUrl}}/v1/attributes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/attributes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/attributes")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET mybusinessbusinessinformation.categories.batchGet
{{baseUrl}}/v1/categories:batchGet
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/categories:batchGet");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/categories:batchGet")
require "http/client"

url = "{{baseUrl}}/v1/categories:batchGet"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/categories:batchGet"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/categories:batchGet");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/categories:batchGet"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/categories:batchGet HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/categories:batchGet")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/categories:batchGet"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/categories:batchGet")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/categories:batchGet")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/categories:batchGet');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/categories:batchGet'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/categories:batchGet';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/categories:batchGet',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/categories:batchGet")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/categories:batchGet',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/categories:batchGet'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/categories:batchGet');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/categories:batchGet'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/categories:batchGet';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/categories:batchGet"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/categories:batchGet" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/categories:batchGet",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/categories:batchGet');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/categories:batchGet');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/categories:batchGet');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/categories:batchGet' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/categories:batchGet' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/categories:batchGet")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/categories:batchGet"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/categories:batchGet"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/categories:batchGet")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/categories:batchGet') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/categories:batchGet";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/categories:batchGet
http GET {{baseUrl}}/v1/categories:batchGet
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/categories:batchGet
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/categories:batchGet")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET mybusinessbusinessinformation.categories.list
{{baseUrl}}/v1/categories
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/categories");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/categories")
require "http/client"

url = "{{baseUrl}}/v1/categories"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/categories"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/categories");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/categories"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/categories HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/categories")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/categories"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/categories")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/categories")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/categories');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/categories'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/categories';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/categories',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/categories")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/categories',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/categories'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/categories');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/categories'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/categories';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/categories"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/categories" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/categories",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/categories');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/categories');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/categories');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/categories' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/categories' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/categories")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/categories"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/categories"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/categories")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/categories') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/categories";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/categories
http GET {{baseUrl}}/v1/categories
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/categories
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/categories")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/chains:search");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/chains:search")
require "http/client"

url = "{{baseUrl}}/v1/chains:search"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/chains:search"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/chains:search");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/chains:search"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/chains:search HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/chains:search")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/chains:search"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/chains:search")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/chains:search")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/chains:search');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/chains:search'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/chains:search';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/chains:search',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/chains:search")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/chains:search',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/chains:search'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/chains:search');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/chains:search'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/chains:search';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/chains:search"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/chains:search" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/chains:search",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/chains:search');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/chains:search');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/chains:search');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/chains:search' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/chains:search' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/chains:search")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/chains:search"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/chains:search"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/chains:search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/chains:search') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/chains:search";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/chains:search
http GET {{baseUrl}}/v1/chains:search
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/chains:search
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/chains:search")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/googleLocations:search");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/googleLocations:search" {:content-type :json
                                                                      :form-params {:location {:adWordsLocationExtensions {:adPhone ""}
                                                                                               :categories {:additionalCategories [{:displayName ""
                                                                                                                                    :moreHoursTypes [{:displayName ""
                                                                                                                                                      :hoursTypeId ""
                                                                                                                                                      :localizedDisplayName ""}]
                                                                                                                                    :name ""
                                                                                                                                    :serviceTypes [{:displayName ""
                                                                                                                                                    :serviceTypeId ""}]}]
                                                                                                            :primaryCategory {}}
                                                                                               :labels []
                                                                                               :languageCode ""
                                                                                               :latlng {:latitude ""
                                                                                                        :longitude ""}
                                                                                               :metadata {:canDelete false
                                                                                                          :canHaveBusinessCalls false
                                                                                                          :canHaveFoodMenus false
                                                                                                          :canModifyServiceList false
                                                                                                          :canOperateHealthData false
                                                                                                          :canOperateLocalPost false
                                                                                                          :canOperateLodgingData false
                                                                                                          :duplicateLocation ""
                                                                                                          :hasGoogleUpdated false
                                                                                                          :hasPendingEdits false
                                                                                                          :hasVoiceOfMerchant false
                                                                                                          :mapsUri ""
                                                                                                          :newReviewUri ""
                                                                                                          :placeId ""}
                                                                                               :moreHours [{:hoursTypeId ""
                                                                                                            :periods [{:closeDay ""
                                                                                                                       :closeTime {:hours 0
                                                                                                                                   :minutes 0
                                                                                                                                   :nanos 0
                                                                                                                                   :seconds 0}
                                                                                                                       :openDay ""
                                                                                                                       :openTime {}}]}]
                                                                                               :name ""
                                                                                               :openInfo {:canReopen false
                                                                                                          :openingDate {:day 0
                                                                                                                        :month 0
                                                                                                                        :year 0}
                                                                                                          :status ""}
                                                                                               :phoneNumbers {:additionalPhones []
                                                                                                              :primaryPhone ""}
                                                                                               :profile {:description ""}
                                                                                               :regularHours {:periods [{}]}
                                                                                               :relationshipData {:childrenLocations [{:placeId ""
                                                                                                                                       :relationType ""}]
                                                                                                                  :parentChain ""
                                                                                                                  :parentLocation {}}
                                                                                               :serviceArea {:businessType ""
                                                                                                             :places {:placeInfos [{:placeId ""
                                                                                                                                    :placeName ""}]}
                                                                                                             :regionCode ""}
                                                                                               :serviceItems [{:freeFormServiceItem {:category ""
                                                                                                                                     :label {:description ""
                                                                                                                                             :displayName ""
                                                                                                                                             :languageCode ""}}
                                                                                                               :price {:currencyCode ""
                                                                                                                       :nanos 0
                                                                                                                       :units ""}
                                                                                                               :structuredServiceItem {:description ""
                                                                                                                                       :serviceTypeId ""}}]
                                                                                               :specialHours {:specialHourPeriods [{:closeTime {}
                                                                                                                                    :closed false
                                                                                                                                    :endDate {}
                                                                                                                                    :openTime {}
                                                                                                                                    :startDate {}}]}
                                                                                               :storeCode ""
                                                                                               :storefrontAddress {:addressLines []
                                                                                                                   :administrativeArea ""
                                                                                                                   :languageCode ""
                                                                                                                   :locality ""
                                                                                                                   :organization ""
                                                                                                                   :postalCode ""
                                                                                                                   :recipients []
                                                                                                                   :regionCode ""
                                                                                                                   :revision 0
                                                                                                                   :sortingCode ""
                                                                                                                   :sublocality ""}
                                                                                               :title ""
                                                                                               :websiteUri ""}
                                                                                    :pageSize 0
                                                                                    :query ""}})
require "http/client"

url = "{{baseUrl}}/v1/googleLocations:search"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/googleLocations:search"),
    Content = new StringContent("{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/googleLocations:search");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/googleLocations:search"

	payload := strings.NewReader("{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/googleLocations:search HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3349

{
  "location": {
    "adWordsLocationExtensions": {
      "adPhone": ""
    },
    "categories": {
      "additionalCategories": [
        {
          "displayName": "",
          "moreHoursTypes": [
            {
              "displayName": "",
              "hoursTypeId": "",
              "localizedDisplayName": ""
            }
          ],
          "name": "",
          "serviceTypes": [
            {
              "displayName": "",
              "serviceTypeId": ""
            }
          ]
        }
      ],
      "primaryCategory": {}
    },
    "labels": [],
    "languageCode": "",
    "latlng": {
      "latitude": "",
      "longitude": ""
    },
    "metadata": {
      "canDelete": false,
      "canHaveBusinessCalls": false,
      "canHaveFoodMenus": false,
      "canModifyServiceList": false,
      "canOperateHealthData": false,
      "canOperateLocalPost": false,
      "canOperateLodgingData": false,
      "duplicateLocation": "",
      "hasGoogleUpdated": false,
      "hasPendingEdits": false,
      "hasVoiceOfMerchant": false,
      "mapsUri": "",
      "newReviewUri": "",
      "placeId": ""
    },
    "moreHours": [
      {
        "hoursTypeId": "",
        "periods": [
          {
            "closeDay": "",
            "closeTime": {
              "hours": 0,
              "minutes": 0,
              "nanos": 0,
              "seconds": 0
            },
            "openDay": "",
            "openTime": {}
          }
        ]
      }
    ],
    "name": "",
    "openInfo": {
      "canReopen": false,
      "openingDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "status": ""
    },
    "phoneNumbers": {
      "additionalPhones": [],
      "primaryPhone": ""
    },
    "profile": {
      "description": ""
    },
    "regularHours": {
      "periods": [
        {}
      ]
    },
    "relationshipData": {
      "childrenLocations": [
        {
          "placeId": "",
          "relationType": ""
        }
      ],
      "parentChain": "",
      "parentLocation": {}
    },
    "serviceArea": {
      "businessType": "",
      "places": {
        "placeInfos": [
          {
            "placeId": "",
            "placeName": ""
          }
        ]
      },
      "regionCode": ""
    },
    "serviceItems": [
      {
        "freeFormServiceItem": {
          "category": "",
          "label": {
            "description": "",
            "displayName": "",
            "languageCode": ""
          }
        },
        "price": {
          "currencyCode": "",
          "nanos": 0,
          "units": ""
        },
        "structuredServiceItem": {
          "description": "",
          "serviceTypeId": ""
        }
      }
    ],
    "specialHours": {
      "specialHourPeriods": [
        {
          "closeTime": {},
          "closed": false,
          "endDate": {},
          "openTime": {},
          "startDate": {}
        }
      ]
    },
    "storeCode": "",
    "storefrontAddress": {
      "addressLines": [],
      "administrativeArea": "",
      "languageCode": "",
      "locality": "",
      "organization": "",
      "postalCode": "",
      "recipients": [],
      "regionCode": "",
      "revision": 0,
      "sortingCode": "",
      "sublocality": ""
    },
    "title": "",
    "websiteUri": ""
  },
  "pageSize": 0,
  "query": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/googleLocations:search")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/googleLocations:search"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/googleLocations:search")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/googleLocations:search")
  .header("content-type", "application/json")
  .body("{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  location: {
    adWordsLocationExtensions: {
      adPhone: ''
    },
    categories: {
      additionalCategories: [
        {
          displayName: '',
          moreHoursTypes: [
            {
              displayName: '',
              hoursTypeId: '',
              localizedDisplayName: ''
            }
          ],
          name: '',
          serviceTypes: [
            {
              displayName: '',
              serviceTypeId: ''
            }
          ]
        }
      ],
      primaryCategory: {}
    },
    labels: [],
    languageCode: '',
    latlng: {
      latitude: '',
      longitude: ''
    },
    metadata: {
      canDelete: false,
      canHaveBusinessCalls: false,
      canHaveFoodMenus: false,
      canModifyServiceList: false,
      canOperateHealthData: false,
      canOperateLocalPost: false,
      canOperateLodgingData: false,
      duplicateLocation: '',
      hasGoogleUpdated: false,
      hasPendingEdits: false,
      hasVoiceOfMerchant: false,
      mapsUri: '',
      newReviewUri: '',
      placeId: ''
    },
    moreHours: [
      {
        hoursTypeId: '',
        periods: [
          {
            closeDay: '',
            closeTime: {
              hours: 0,
              minutes: 0,
              nanos: 0,
              seconds: 0
            },
            openDay: '',
            openTime: {}
          }
        ]
      }
    ],
    name: '',
    openInfo: {
      canReopen: false,
      openingDate: {
        day: 0,
        month: 0,
        year: 0
      },
      status: ''
    },
    phoneNumbers: {
      additionalPhones: [],
      primaryPhone: ''
    },
    profile: {
      description: ''
    },
    regularHours: {
      periods: [
        {}
      ]
    },
    relationshipData: {
      childrenLocations: [
        {
          placeId: '',
          relationType: ''
        }
      ],
      parentChain: '',
      parentLocation: {}
    },
    serviceArea: {
      businessType: '',
      places: {
        placeInfos: [
          {
            placeId: '',
            placeName: ''
          }
        ]
      },
      regionCode: ''
    },
    serviceItems: [
      {
        freeFormServiceItem: {
          category: '',
          label: {
            description: '',
            displayName: '',
            languageCode: ''
          }
        },
        price: {
          currencyCode: '',
          nanos: 0,
          units: ''
        },
        structuredServiceItem: {
          description: '',
          serviceTypeId: ''
        }
      }
    ],
    specialHours: {
      specialHourPeriods: [
        {
          closeTime: {},
          closed: false,
          endDate: {},
          openTime: {},
          startDate: {}
        }
      ]
    },
    storeCode: '',
    storefrontAddress: {
      addressLines: [],
      administrativeArea: '',
      languageCode: '',
      locality: '',
      organization: '',
      postalCode: '',
      recipients: [],
      regionCode: '',
      revision: 0,
      sortingCode: '',
      sublocality: ''
    },
    title: '',
    websiteUri: ''
  },
  pageSize: 0,
  query: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/googleLocations:search');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/googleLocations:search',
  headers: {'content-type': 'application/json'},
  data: {
    location: {
      adWordsLocationExtensions: {adPhone: ''},
      categories: {
        additionalCategories: [
          {
            displayName: '',
            moreHoursTypes: [{displayName: '', hoursTypeId: '', localizedDisplayName: ''}],
            name: '',
            serviceTypes: [{displayName: '', serviceTypeId: ''}]
          }
        ],
        primaryCategory: {}
      },
      labels: [],
      languageCode: '',
      latlng: {latitude: '', longitude: ''},
      metadata: {
        canDelete: false,
        canHaveBusinessCalls: false,
        canHaveFoodMenus: false,
        canModifyServiceList: false,
        canOperateHealthData: false,
        canOperateLocalPost: false,
        canOperateLodgingData: false,
        duplicateLocation: '',
        hasGoogleUpdated: false,
        hasPendingEdits: false,
        hasVoiceOfMerchant: false,
        mapsUri: '',
        newReviewUri: '',
        placeId: ''
      },
      moreHours: [
        {
          hoursTypeId: '',
          periods: [
            {
              closeDay: '',
              closeTime: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
              openDay: '',
              openTime: {}
            }
          ]
        }
      ],
      name: '',
      openInfo: {canReopen: false, openingDate: {day: 0, month: 0, year: 0}, status: ''},
      phoneNumbers: {additionalPhones: [], primaryPhone: ''},
      profile: {description: ''},
      regularHours: {periods: [{}]},
      relationshipData: {
        childrenLocations: [{placeId: '', relationType: ''}],
        parentChain: '',
        parentLocation: {}
      },
      serviceArea: {
        businessType: '',
        places: {placeInfos: [{placeId: '', placeName: ''}]},
        regionCode: ''
      },
      serviceItems: [
        {
          freeFormServiceItem: {category: '', label: {description: '', displayName: '', languageCode: ''}},
          price: {currencyCode: '', nanos: 0, units: ''},
          structuredServiceItem: {description: '', serviceTypeId: ''}
        }
      ],
      specialHours: {
        specialHourPeriods: [{closeTime: {}, closed: false, endDate: {}, openTime: {}, startDate: {}}]
      },
      storeCode: '',
      storefrontAddress: {
        addressLines: [],
        administrativeArea: '',
        languageCode: '',
        locality: '',
        organization: '',
        postalCode: '',
        recipients: [],
        regionCode: '',
        revision: 0,
        sortingCode: '',
        sublocality: ''
      },
      title: '',
      websiteUri: ''
    },
    pageSize: 0,
    query: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/googleLocations:search';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"location":{"adWordsLocationExtensions":{"adPhone":""},"categories":{"additionalCategories":[{"displayName":"","moreHoursTypes":[{"displayName":"","hoursTypeId":"","localizedDisplayName":""}],"name":"","serviceTypes":[{"displayName":"","serviceTypeId":""}]}],"primaryCategory":{}},"labels":[],"languageCode":"","latlng":{"latitude":"","longitude":""},"metadata":{"canDelete":false,"canHaveBusinessCalls":false,"canHaveFoodMenus":false,"canModifyServiceList":false,"canOperateHealthData":false,"canOperateLocalPost":false,"canOperateLodgingData":false,"duplicateLocation":"","hasGoogleUpdated":false,"hasPendingEdits":false,"hasVoiceOfMerchant":false,"mapsUri":"","newReviewUri":"","placeId":""},"moreHours":[{"hoursTypeId":"","periods":[{"closeDay":"","closeTime":{"hours":0,"minutes":0,"nanos":0,"seconds":0},"openDay":"","openTime":{}}]}],"name":"","openInfo":{"canReopen":false,"openingDate":{"day":0,"month":0,"year":0},"status":""},"phoneNumbers":{"additionalPhones":[],"primaryPhone":""},"profile":{"description":""},"regularHours":{"periods":[{}]},"relationshipData":{"childrenLocations":[{"placeId":"","relationType":""}],"parentChain":"","parentLocation":{}},"serviceArea":{"businessType":"","places":{"placeInfos":[{"placeId":"","placeName":""}]},"regionCode":""},"serviceItems":[{"freeFormServiceItem":{"category":"","label":{"description":"","displayName":"","languageCode":""}},"price":{"currencyCode":"","nanos":0,"units":""},"structuredServiceItem":{"description":"","serviceTypeId":""}}],"specialHours":{"specialHourPeriods":[{"closeTime":{},"closed":false,"endDate":{},"openTime":{},"startDate":{}}]},"storeCode":"","storefrontAddress":{"addressLines":[],"administrativeArea":"","languageCode":"","locality":"","organization":"","postalCode":"","recipients":[],"regionCode":"","revision":0,"sortingCode":"","sublocality":""},"title":"","websiteUri":""},"pageSize":0,"query":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/googleLocations:search',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "location": {\n    "adWordsLocationExtensions": {\n      "adPhone": ""\n    },\n    "categories": {\n      "additionalCategories": [\n        {\n          "displayName": "",\n          "moreHoursTypes": [\n            {\n              "displayName": "",\n              "hoursTypeId": "",\n              "localizedDisplayName": ""\n            }\n          ],\n          "name": "",\n          "serviceTypes": [\n            {\n              "displayName": "",\n              "serviceTypeId": ""\n            }\n          ]\n        }\n      ],\n      "primaryCategory": {}\n    },\n    "labels": [],\n    "languageCode": "",\n    "latlng": {\n      "latitude": "",\n      "longitude": ""\n    },\n    "metadata": {\n      "canDelete": false,\n      "canHaveBusinessCalls": false,\n      "canHaveFoodMenus": false,\n      "canModifyServiceList": false,\n      "canOperateHealthData": false,\n      "canOperateLocalPost": false,\n      "canOperateLodgingData": false,\n      "duplicateLocation": "",\n      "hasGoogleUpdated": false,\n      "hasPendingEdits": false,\n      "hasVoiceOfMerchant": false,\n      "mapsUri": "",\n      "newReviewUri": "",\n      "placeId": ""\n    },\n    "moreHours": [\n      {\n        "hoursTypeId": "",\n        "periods": [\n          {\n            "closeDay": "",\n            "closeTime": {\n              "hours": 0,\n              "minutes": 0,\n              "nanos": 0,\n              "seconds": 0\n            },\n            "openDay": "",\n            "openTime": {}\n          }\n        ]\n      }\n    ],\n    "name": "",\n    "openInfo": {\n      "canReopen": false,\n      "openingDate": {\n        "day": 0,\n        "month": 0,\n        "year": 0\n      },\n      "status": ""\n    },\n    "phoneNumbers": {\n      "additionalPhones": [],\n      "primaryPhone": ""\n    },\n    "profile": {\n      "description": ""\n    },\n    "regularHours": {\n      "periods": [\n        {}\n      ]\n    },\n    "relationshipData": {\n      "childrenLocations": [\n        {\n          "placeId": "",\n          "relationType": ""\n        }\n      ],\n      "parentChain": "",\n      "parentLocation": {}\n    },\n    "serviceArea": {\n      "businessType": "",\n      "places": {\n        "placeInfos": [\n          {\n            "placeId": "",\n            "placeName": ""\n          }\n        ]\n      },\n      "regionCode": ""\n    },\n    "serviceItems": [\n      {\n        "freeFormServiceItem": {\n          "category": "",\n          "label": {\n            "description": "",\n            "displayName": "",\n            "languageCode": ""\n          }\n        },\n        "price": {\n          "currencyCode": "",\n          "nanos": 0,\n          "units": ""\n        },\n        "structuredServiceItem": {\n          "description": "",\n          "serviceTypeId": ""\n        }\n      }\n    ],\n    "specialHours": {\n      "specialHourPeriods": [\n        {\n          "closeTime": {},\n          "closed": false,\n          "endDate": {},\n          "openTime": {},\n          "startDate": {}\n        }\n      ]\n    },\n    "storeCode": "",\n    "storefrontAddress": {\n      "addressLines": [],\n      "administrativeArea": "",\n      "languageCode": "",\n      "locality": "",\n      "organization": "",\n      "postalCode": "",\n      "recipients": [],\n      "regionCode": "",\n      "revision": 0,\n      "sortingCode": "",\n      "sublocality": ""\n    },\n    "title": "",\n    "websiteUri": ""\n  },\n  "pageSize": 0,\n  "query": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/googleLocations:search")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/googleLocations:search',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  location: {
    adWordsLocationExtensions: {adPhone: ''},
    categories: {
      additionalCategories: [
        {
          displayName: '',
          moreHoursTypes: [{displayName: '', hoursTypeId: '', localizedDisplayName: ''}],
          name: '',
          serviceTypes: [{displayName: '', serviceTypeId: ''}]
        }
      ],
      primaryCategory: {}
    },
    labels: [],
    languageCode: '',
    latlng: {latitude: '', longitude: ''},
    metadata: {
      canDelete: false,
      canHaveBusinessCalls: false,
      canHaveFoodMenus: false,
      canModifyServiceList: false,
      canOperateHealthData: false,
      canOperateLocalPost: false,
      canOperateLodgingData: false,
      duplicateLocation: '',
      hasGoogleUpdated: false,
      hasPendingEdits: false,
      hasVoiceOfMerchant: false,
      mapsUri: '',
      newReviewUri: '',
      placeId: ''
    },
    moreHours: [
      {
        hoursTypeId: '',
        periods: [
          {
            closeDay: '',
            closeTime: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
            openDay: '',
            openTime: {}
          }
        ]
      }
    ],
    name: '',
    openInfo: {canReopen: false, openingDate: {day: 0, month: 0, year: 0}, status: ''},
    phoneNumbers: {additionalPhones: [], primaryPhone: ''},
    profile: {description: ''},
    regularHours: {periods: [{}]},
    relationshipData: {
      childrenLocations: [{placeId: '', relationType: ''}],
      parentChain: '',
      parentLocation: {}
    },
    serviceArea: {
      businessType: '',
      places: {placeInfos: [{placeId: '', placeName: ''}]},
      regionCode: ''
    },
    serviceItems: [
      {
        freeFormServiceItem: {category: '', label: {description: '', displayName: '', languageCode: ''}},
        price: {currencyCode: '', nanos: 0, units: ''},
        structuredServiceItem: {description: '', serviceTypeId: ''}
      }
    ],
    specialHours: {
      specialHourPeriods: [{closeTime: {}, closed: false, endDate: {}, openTime: {}, startDate: {}}]
    },
    storeCode: '',
    storefrontAddress: {
      addressLines: [],
      administrativeArea: '',
      languageCode: '',
      locality: '',
      organization: '',
      postalCode: '',
      recipients: [],
      regionCode: '',
      revision: 0,
      sortingCode: '',
      sublocality: ''
    },
    title: '',
    websiteUri: ''
  },
  pageSize: 0,
  query: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/googleLocations:search',
  headers: {'content-type': 'application/json'},
  body: {
    location: {
      adWordsLocationExtensions: {adPhone: ''},
      categories: {
        additionalCategories: [
          {
            displayName: '',
            moreHoursTypes: [{displayName: '', hoursTypeId: '', localizedDisplayName: ''}],
            name: '',
            serviceTypes: [{displayName: '', serviceTypeId: ''}]
          }
        ],
        primaryCategory: {}
      },
      labels: [],
      languageCode: '',
      latlng: {latitude: '', longitude: ''},
      metadata: {
        canDelete: false,
        canHaveBusinessCalls: false,
        canHaveFoodMenus: false,
        canModifyServiceList: false,
        canOperateHealthData: false,
        canOperateLocalPost: false,
        canOperateLodgingData: false,
        duplicateLocation: '',
        hasGoogleUpdated: false,
        hasPendingEdits: false,
        hasVoiceOfMerchant: false,
        mapsUri: '',
        newReviewUri: '',
        placeId: ''
      },
      moreHours: [
        {
          hoursTypeId: '',
          periods: [
            {
              closeDay: '',
              closeTime: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
              openDay: '',
              openTime: {}
            }
          ]
        }
      ],
      name: '',
      openInfo: {canReopen: false, openingDate: {day: 0, month: 0, year: 0}, status: ''},
      phoneNumbers: {additionalPhones: [], primaryPhone: ''},
      profile: {description: ''},
      regularHours: {periods: [{}]},
      relationshipData: {
        childrenLocations: [{placeId: '', relationType: ''}],
        parentChain: '',
        parentLocation: {}
      },
      serviceArea: {
        businessType: '',
        places: {placeInfos: [{placeId: '', placeName: ''}]},
        regionCode: ''
      },
      serviceItems: [
        {
          freeFormServiceItem: {category: '', label: {description: '', displayName: '', languageCode: ''}},
          price: {currencyCode: '', nanos: 0, units: ''},
          structuredServiceItem: {description: '', serviceTypeId: ''}
        }
      ],
      specialHours: {
        specialHourPeriods: [{closeTime: {}, closed: false, endDate: {}, openTime: {}, startDate: {}}]
      },
      storeCode: '',
      storefrontAddress: {
        addressLines: [],
        administrativeArea: '',
        languageCode: '',
        locality: '',
        organization: '',
        postalCode: '',
        recipients: [],
        regionCode: '',
        revision: 0,
        sortingCode: '',
        sublocality: ''
      },
      title: '',
      websiteUri: ''
    },
    pageSize: 0,
    query: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/googleLocations:search');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  location: {
    adWordsLocationExtensions: {
      adPhone: ''
    },
    categories: {
      additionalCategories: [
        {
          displayName: '',
          moreHoursTypes: [
            {
              displayName: '',
              hoursTypeId: '',
              localizedDisplayName: ''
            }
          ],
          name: '',
          serviceTypes: [
            {
              displayName: '',
              serviceTypeId: ''
            }
          ]
        }
      ],
      primaryCategory: {}
    },
    labels: [],
    languageCode: '',
    latlng: {
      latitude: '',
      longitude: ''
    },
    metadata: {
      canDelete: false,
      canHaveBusinessCalls: false,
      canHaveFoodMenus: false,
      canModifyServiceList: false,
      canOperateHealthData: false,
      canOperateLocalPost: false,
      canOperateLodgingData: false,
      duplicateLocation: '',
      hasGoogleUpdated: false,
      hasPendingEdits: false,
      hasVoiceOfMerchant: false,
      mapsUri: '',
      newReviewUri: '',
      placeId: ''
    },
    moreHours: [
      {
        hoursTypeId: '',
        periods: [
          {
            closeDay: '',
            closeTime: {
              hours: 0,
              minutes: 0,
              nanos: 0,
              seconds: 0
            },
            openDay: '',
            openTime: {}
          }
        ]
      }
    ],
    name: '',
    openInfo: {
      canReopen: false,
      openingDate: {
        day: 0,
        month: 0,
        year: 0
      },
      status: ''
    },
    phoneNumbers: {
      additionalPhones: [],
      primaryPhone: ''
    },
    profile: {
      description: ''
    },
    regularHours: {
      periods: [
        {}
      ]
    },
    relationshipData: {
      childrenLocations: [
        {
          placeId: '',
          relationType: ''
        }
      ],
      parentChain: '',
      parentLocation: {}
    },
    serviceArea: {
      businessType: '',
      places: {
        placeInfos: [
          {
            placeId: '',
            placeName: ''
          }
        ]
      },
      regionCode: ''
    },
    serviceItems: [
      {
        freeFormServiceItem: {
          category: '',
          label: {
            description: '',
            displayName: '',
            languageCode: ''
          }
        },
        price: {
          currencyCode: '',
          nanos: 0,
          units: ''
        },
        structuredServiceItem: {
          description: '',
          serviceTypeId: ''
        }
      }
    ],
    specialHours: {
      specialHourPeriods: [
        {
          closeTime: {},
          closed: false,
          endDate: {},
          openTime: {},
          startDate: {}
        }
      ]
    },
    storeCode: '',
    storefrontAddress: {
      addressLines: [],
      administrativeArea: '',
      languageCode: '',
      locality: '',
      organization: '',
      postalCode: '',
      recipients: [],
      regionCode: '',
      revision: 0,
      sortingCode: '',
      sublocality: ''
    },
    title: '',
    websiteUri: ''
  },
  pageSize: 0,
  query: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/googleLocations:search',
  headers: {'content-type': 'application/json'},
  data: {
    location: {
      adWordsLocationExtensions: {adPhone: ''},
      categories: {
        additionalCategories: [
          {
            displayName: '',
            moreHoursTypes: [{displayName: '', hoursTypeId: '', localizedDisplayName: ''}],
            name: '',
            serviceTypes: [{displayName: '', serviceTypeId: ''}]
          }
        ],
        primaryCategory: {}
      },
      labels: [],
      languageCode: '',
      latlng: {latitude: '', longitude: ''},
      metadata: {
        canDelete: false,
        canHaveBusinessCalls: false,
        canHaveFoodMenus: false,
        canModifyServiceList: false,
        canOperateHealthData: false,
        canOperateLocalPost: false,
        canOperateLodgingData: false,
        duplicateLocation: '',
        hasGoogleUpdated: false,
        hasPendingEdits: false,
        hasVoiceOfMerchant: false,
        mapsUri: '',
        newReviewUri: '',
        placeId: ''
      },
      moreHours: [
        {
          hoursTypeId: '',
          periods: [
            {
              closeDay: '',
              closeTime: {hours: 0, minutes: 0, nanos: 0, seconds: 0},
              openDay: '',
              openTime: {}
            }
          ]
        }
      ],
      name: '',
      openInfo: {canReopen: false, openingDate: {day: 0, month: 0, year: 0}, status: ''},
      phoneNumbers: {additionalPhones: [], primaryPhone: ''},
      profile: {description: ''},
      regularHours: {periods: [{}]},
      relationshipData: {
        childrenLocations: [{placeId: '', relationType: ''}],
        parentChain: '',
        parentLocation: {}
      },
      serviceArea: {
        businessType: '',
        places: {placeInfos: [{placeId: '', placeName: ''}]},
        regionCode: ''
      },
      serviceItems: [
        {
          freeFormServiceItem: {category: '', label: {description: '', displayName: '', languageCode: ''}},
          price: {currencyCode: '', nanos: 0, units: ''},
          structuredServiceItem: {description: '', serviceTypeId: ''}
        }
      ],
      specialHours: {
        specialHourPeriods: [{closeTime: {}, closed: false, endDate: {}, openTime: {}, startDate: {}}]
      },
      storeCode: '',
      storefrontAddress: {
        addressLines: [],
        administrativeArea: '',
        languageCode: '',
        locality: '',
        organization: '',
        postalCode: '',
        recipients: [],
        regionCode: '',
        revision: 0,
        sortingCode: '',
        sublocality: ''
      },
      title: '',
      websiteUri: ''
    },
    pageSize: 0,
    query: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/googleLocations:search';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"location":{"adWordsLocationExtensions":{"adPhone":""},"categories":{"additionalCategories":[{"displayName":"","moreHoursTypes":[{"displayName":"","hoursTypeId":"","localizedDisplayName":""}],"name":"","serviceTypes":[{"displayName":"","serviceTypeId":""}]}],"primaryCategory":{}},"labels":[],"languageCode":"","latlng":{"latitude":"","longitude":""},"metadata":{"canDelete":false,"canHaveBusinessCalls":false,"canHaveFoodMenus":false,"canModifyServiceList":false,"canOperateHealthData":false,"canOperateLocalPost":false,"canOperateLodgingData":false,"duplicateLocation":"","hasGoogleUpdated":false,"hasPendingEdits":false,"hasVoiceOfMerchant":false,"mapsUri":"","newReviewUri":"","placeId":""},"moreHours":[{"hoursTypeId":"","periods":[{"closeDay":"","closeTime":{"hours":0,"minutes":0,"nanos":0,"seconds":0},"openDay":"","openTime":{}}]}],"name":"","openInfo":{"canReopen":false,"openingDate":{"day":0,"month":0,"year":0},"status":""},"phoneNumbers":{"additionalPhones":[],"primaryPhone":""},"profile":{"description":""},"regularHours":{"periods":[{}]},"relationshipData":{"childrenLocations":[{"placeId":"","relationType":""}],"parentChain":"","parentLocation":{}},"serviceArea":{"businessType":"","places":{"placeInfos":[{"placeId":"","placeName":""}]},"regionCode":""},"serviceItems":[{"freeFormServiceItem":{"category":"","label":{"description":"","displayName":"","languageCode":""}},"price":{"currencyCode":"","nanos":0,"units":""},"structuredServiceItem":{"description":"","serviceTypeId":""}}],"specialHours":{"specialHourPeriods":[{"closeTime":{},"closed":false,"endDate":{},"openTime":{},"startDate":{}}]},"storeCode":"","storefrontAddress":{"addressLines":[],"administrativeArea":"","languageCode":"","locality":"","organization":"","postalCode":"","recipients":[],"regionCode":"","revision":0,"sortingCode":"","sublocality":""},"title":"","websiteUri":""},"pageSize":0,"query":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"location": @{ @"adWordsLocationExtensions": @{ @"adPhone": @"" }, @"categories": @{ @"additionalCategories": @[ @{ @"displayName": @"", @"moreHoursTypes": @[ @{ @"displayName": @"", @"hoursTypeId": @"", @"localizedDisplayName": @"" } ], @"name": @"", @"serviceTypes": @[ @{ @"displayName": @"", @"serviceTypeId": @"" } ] } ], @"primaryCategory": @{  } }, @"labels": @[  ], @"languageCode": @"", @"latlng": @{ @"latitude": @"", @"longitude": @"" }, @"metadata": @{ @"canDelete": @NO, @"canHaveBusinessCalls": @NO, @"canHaveFoodMenus": @NO, @"canModifyServiceList": @NO, @"canOperateHealthData": @NO, @"canOperateLocalPost": @NO, @"canOperateLodgingData": @NO, @"duplicateLocation": @"", @"hasGoogleUpdated": @NO, @"hasPendingEdits": @NO, @"hasVoiceOfMerchant": @NO, @"mapsUri": @"", @"newReviewUri": @"", @"placeId": @"" }, @"moreHours": @[ @{ @"hoursTypeId": @"", @"periods": @[ @{ @"closeDay": @"", @"closeTime": @{ @"hours": @0, @"minutes": @0, @"nanos": @0, @"seconds": @0 }, @"openDay": @"", @"openTime": @{  } } ] } ], @"name": @"", @"openInfo": @{ @"canReopen": @NO, @"openingDate": @{ @"day": @0, @"month": @0, @"year": @0 }, @"status": @"" }, @"phoneNumbers": @{ @"additionalPhones": @[  ], @"primaryPhone": @"" }, @"profile": @{ @"description": @"" }, @"regularHours": @{ @"periods": @[ @{  } ] }, @"relationshipData": @{ @"childrenLocations": @[ @{ @"placeId": @"", @"relationType": @"" } ], @"parentChain": @"", @"parentLocation": @{  } }, @"serviceArea": @{ @"businessType": @"", @"places": @{ @"placeInfos": @[ @{ @"placeId": @"", @"placeName": @"" } ] }, @"regionCode": @"" }, @"serviceItems": @[ @{ @"freeFormServiceItem": @{ @"category": @"", @"label": @{ @"description": @"", @"displayName": @"", @"languageCode": @"" } }, @"price": @{ @"currencyCode": @"", @"nanos": @0, @"units": @"" }, @"structuredServiceItem": @{ @"description": @"", @"serviceTypeId": @"" } } ], @"specialHours": @{ @"specialHourPeriods": @[ @{ @"closeTime": @{  }, @"closed": @NO, @"endDate": @{  }, @"openTime": @{  }, @"startDate": @{  } } ] }, @"storeCode": @"", @"storefrontAddress": @{ @"addressLines": @[  ], @"administrativeArea": @"", @"languageCode": @"", @"locality": @"", @"organization": @"", @"postalCode": @"", @"recipients": @[  ], @"regionCode": @"", @"revision": @0, @"sortingCode": @"", @"sublocality": @"" }, @"title": @"", @"websiteUri": @"" },
                              @"pageSize": @0,
                              @"query": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/googleLocations:search"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/googleLocations:search" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/googleLocations:search",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'location' => [
        'adWordsLocationExtensions' => [
                'adPhone' => ''
        ],
        'categories' => [
                'additionalCategories' => [
                                [
                                                                'displayName' => '',
                                                                'moreHoursTypes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'hoursTypeId' => '',
                                                                                                                                                                                                                                                                'localizedDisplayName' => ''
                                                                                                                                ]
                                                                ],
                                                                'name' => '',
                                                                'serviceTypes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'serviceTypeId' => ''
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'primaryCategory' => [
                                
                ]
        ],
        'labels' => [
                
        ],
        'languageCode' => '',
        'latlng' => [
                'latitude' => '',
                'longitude' => ''
        ],
        'metadata' => [
                'canDelete' => null,
                'canHaveBusinessCalls' => null,
                'canHaveFoodMenus' => null,
                'canModifyServiceList' => null,
                'canOperateHealthData' => null,
                'canOperateLocalPost' => null,
                'canOperateLodgingData' => null,
                'duplicateLocation' => '',
                'hasGoogleUpdated' => null,
                'hasPendingEdits' => null,
                'hasVoiceOfMerchant' => null,
                'mapsUri' => '',
                'newReviewUri' => '',
                'placeId' => ''
        ],
        'moreHours' => [
                [
                                'hoursTypeId' => '',
                                'periods' => [
                                                                [
                                                                                                                                'closeDay' => '',
                                                                                                                                'closeTime' => [
                                                                                                                                                                                                                                                                'hours' => 0,
                                                                                                                                                                                                                                                                'minutes' => 0,
                                                                                                                                                                                                                                                                'nanos' => 0,
                                                                                                                                                                                                                                                                'seconds' => 0
                                                                                                                                ],
                                                                                                                                'openDay' => '',
                                                                                                                                'openTime' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ]
                ]
        ],
        'name' => '',
        'openInfo' => [
                'canReopen' => null,
                'openingDate' => [
                                'day' => 0,
                                'month' => 0,
                                'year' => 0
                ],
                'status' => ''
        ],
        'phoneNumbers' => [
                'additionalPhones' => [
                                
                ],
                'primaryPhone' => ''
        ],
        'profile' => [
                'description' => ''
        ],
        'regularHours' => [
                'periods' => [
                                [
                                                                
                                ]
                ]
        ],
        'relationshipData' => [
                'childrenLocations' => [
                                [
                                                                'placeId' => '',
                                                                'relationType' => ''
                                ]
                ],
                'parentChain' => '',
                'parentLocation' => [
                                
                ]
        ],
        'serviceArea' => [
                'businessType' => '',
                'places' => [
                                'placeInfos' => [
                                                                [
                                                                                                                                'placeId' => '',
                                                                                                                                'placeName' => ''
                                                                ]
                                ]
                ],
                'regionCode' => ''
        ],
        'serviceItems' => [
                [
                                'freeFormServiceItem' => [
                                                                'category' => '',
                                                                'label' => [
                                                                                                                                'description' => '',
                                                                                                                                'displayName' => '',
                                                                                                                                'languageCode' => ''
                                                                ]
                                ],
                                'price' => [
                                                                'currencyCode' => '',
                                                                'nanos' => 0,
                                                                'units' => ''
                                ],
                                'structuredServiceItem' => [
                                                                'description' => '',
                                                                'serviceTypeId' => ''
                                ]
                ]
        ],
        'specialHours' => [
                'specialHourPeriods' => [
                                [
                                                                'closeTime' => [
                                                                                                                                
                                                                ],
                                                                'closed' => null,
                                                                'endDate' => [
                                                                                                                                
                                                                ],
                                                                'openTime' => [
                                                                                                                                
                                                                ],
                                                                'startDate' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'storeCode' => '',
        'storefrontAddress' => [
                'addressLines' => [
                                
                ],
                'administrativeArea' => '',
                'languageCode' => '',
                'locality' => '',
                'organization' => '',
                'postalCode' => '',
                'recipients' => [
                                
                ],
                'regionCode' => '',
                'revision' => 0,
                'sortingCode' => '',
                'sublocality' => ''
        ],
        'title' => '',
        'websiteUri' => ''
    ],
    'pageSize' => 0,
    'query' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/googleLocations:search', [
  'body' => '{
  "location": {
    "adWordsLocationExtensions": {
      "adPhone": ""
    },
    "categories": {
      "additionalCategories": [
        {
          "displayName": "",
          "moreHoursTypes": [
            {
              "displayName": "",
              "hoursTypeId": "",
              "localizedDisplayName": ""
            }
          ],
          "name": "",
          "serviceTypes": [
            {
              "displayName": "",
              "serviceTypeId": ""
            }
          ]
        }
      ],
      "primaryCategory": {}
    },
    "labels": [],
    "languageCode": "",
    "latlng": {
      "latitude": "",
      "longitude": ""
    },
    "metadata": {
      "canDelete": false,
      "canHaveBusinessCalls": false,
      "canHaveFoodMenus": false,
      "canModifyServiceList": false,
      "canOperateHealthData": false,
      "canOperateLocalPost": false,
      "canOperateLodgingData": false,
      "duplicateLocation": "",
      "hasGoogleUpdated": false,
      "hasPendingEdits": false,
      "hasVoiceOfMerchant": false,
      "mapsUri": "",
      "newReviewUri": "",
      "placeId": ""
    },
    "moreHours": [
      {
        "hoursTypeId": "",
        "periods": [
          {
            "closeDay": "",
            "closeTime": {
              "hours": 0,
              "minutes": 0,
              "nanos": 0,
              "seconds": 0
            },
            "openDay": "",
            "openTime": {}
          }
        ]
      }
    ],
    "name": "",
    "openInfo": {
      "canReopen": false,
      "openingDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "status": ""
    },
    "phoneNumbers": {
      "additionalPhones": [],
      "primaryPhone": ""
    },
    "profile": {
      "description": ""
    },
    "regularHours": {
      "periods": [
        {}
      ]
    },
    "relationshipData": {
      "childrenLocations": [
        {
          "placeId": "",
          "relationType": ""
        }
      ],
      "parentChain": "",
      "parentLocation": {}
    },
    "serviceArea": {
      "businessType": "",
      "places": {
        "placeInfos": [
          {
            "placeId": "",
            "placeName": ""
          }
        ]
      },
      "regionCode": ""
    },
    "serviceItems": [
      {
        "freeFormServiceItem": {
          "category": "",
          "label": {
            "description": "",
            "displayName": "",
            "languageCode": ""
          }
        },
        "price": {
          "currencyCode": "",
          "nanos": 0,
          "units": ""
        },
        "structuredServiceItem": {
          "description": "",
          "serviceTypeId": ""
        }
      }
    ],
    "specialHours": {
      "specialHourPeriods": [
        {
          "closeTime": {},
          "closed": false,
          "endDate": {},
          "openTime": {},
          "startDate": {}
        }
      ]
    },
    "storeCode": "",
    "storefrontAddress": {
      "addressLines": [],
      "administrativeArea": "",
      "languageCode": "",
      "locality": "",
      "organization": "",
      "postalCode": "",
      "recipients": [],
      "regionCode": "",
      "revision": 0,
      "sortingCode": "",
      "sublocality": ""
    },
    "title": "",
    "websiteUri": ""
  },
  "pageSize": 0,
  "query": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/googleLocations:search');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'location' => [
    'adWordsLocationExtensions' => [
        'adPhone' => ''
    ],
    'categories' => [
        'additionalCategories' => [
                [
                                'displayName' => '',
                                'moreHoursTypes' => [
                                                                [
                                                                                                                                'displayName' => '',
                                                                                                                                'hoursTypeId' => '',
                                                                                                                                'localizedDisplayName' => ''
                                                                ]
                                ],
                                'name' => '',
                                'serviceTypes' => [
                                                                [
                                                                                                                                'displayName' => '',
                                                                                                                                'serviceTypeId' => ''
                                                                ]
                                ]
                ]
        ],
        'primaryCategory' => [
                
        ]
    ],
    'labels' => [
        
    ],
    'languageCode' => '',
    'latlng' => [
        'latitude' => '',
        'longitude' => ''
    ],
    'metadata' => [
        'canDelete' => null,
        'canHaveBusinessCalls' => null,
        'canHaveFoodMenus' => null,
        'canModifyServiceList' => null,
        'canOperateHealthData' => null,
        'canOperateLocalPost' => null,
        'canOperateLodgingData' => null,
        'duplicateLocation' => '',
        'hasGoogleUpdated' => null,
        'hasPendingEdits' => null,
        'hasVoiceOfMerchant' => null,
        'mapsUri' => '',
        'newReviewUri' => '',
        'placeId' => ''
    ],
    'moreHours' => [
        [
                'hoursTypeId' => '',
                'periods' => [
                                [
                                                                'closeDay' => '',
                                                                'closeTime' => [
                                                                                                                                'hours' => 0,
                                                                                                                                'minutes' => 0,
                                                                                                                                'nanos' => 0,
                                                                                                                                'seconds' => 0
                                                                ],
                                                                'openDay' => '',
                                                                'openTime' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ]
    ],
    'name' => '',
    'openInfo' => [
        'canReopen' => null,
        'openingDate' => [
                'day' => 0,
                'month' => 0,
                'year' => 0
        ],
        'status' => ''
    ],
    'phoneNumbers' => [
        'additionalPhones' => [
                
        ],
        'primaryPhone' => ''
    ],
    'profile' => [
        'description' => ''
    ],
    'regularHours' => [
        'periods' => [
                [
                                
                ]
        ]
    ],
    'relationshipData' => [
        'childrenLocations' => [
                [
                                'placeId' => '',
                                'relationType' => ''
                ]
        ],
        'parentChain' => '',
        'parentLocation' => [
                
        ]
    ],
    'serviceArea' => [
        'businessType' => '',
        'places' => [
                'placeInfos' => [
                                [
                                                                'placeId' => '',
                                                                'placeName' => ''
                                ]
                ]
        ],
        'regionCode' => ''
    ],
    'serviceItems' => [
        [
                'freeFormServiceItem' => [
                                'category' => '',
                                'label' => [
                                                                'description' => '',
                                                                'displayName' => '',
                                                                'languageCode' => ''
                                ]
                ],
                'price' => [
                                'currencyCode' => '',
                                'nanos' => 0,
                                'units' => ''
                ],
                'structuredServiceItem' => [
                                'description' => '',
                                'serviceTypeId' => ''
                ]
        ]
    ],
    'specialHours' => [
        'specialHourPeriods' => [
                [
                                'closeTime' => [
                                                                
                                ],
                                'closed' => null,
                                'endDate' => [
                                                                
                                ],
                                'openTime' => [
                                                                
                                ],
                                'startDate' => [
                                                                
                                ]
                ]
        ]
    ],
    'storeCode' => '',
    'storefrontAddress' => [
        'addressLines' => [
                
        ],
        'administrativeArea' => '',
        'languageCode' => '',
        'locality' => '',
        'organization' => '',
        'postalCode' => '',
        'recipients' => [
                
        ],
        'regionCode' => '',
        'revision' => 0,
        'sortingCode' => '',
        'sublocality' => ''
    ],
    'title' => '',
    'websiteUri' => ''
  ],
  'pageSize' => 0,
  'query' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'location' => [
    'adWordsLocationExtensions' => [
        'adPhone' => ''
    ],
    'categories' => [
        'additionalCategories' => [
                [
                                'displayName' => '',
                                'moreHoursTypes' => [
                                                                [
                                                                                                                                'displayName' => '',
                                                                                                                                'hoursTypeId' => '',
                                                                                                                                'localizedDisplayName' => ''
                                                                ]
                                ],
                                'name' => '',
                                'serviceTypes' => [
                                                                [
                                                                                                                                'displayName' => '',
                                                                                                                                'serviceTypeId' => ''
                                                                ]
                                ]
                ]
        ],
        'primaryCategory' => [
                
        ]
    ],
    'labels' => [
        
    ],
    'languageCode' => '',
    'latlng' => [
        'latitude' => '',
        'longitude' => ''
    ],
    'metadata' => [
        'canDelete' => null,
        'canHaveBusinessCalls' => null,
        'canHaveFoodMenus' => null,
        'canModifyServiceList' => null,
        'canOperateHealthData' => null,
        'canOperateLocalPost' => null,
        'canOperateLodgingData' => null,
        'duplicateLocation' => '',
        'hasGoogleUpdated' => null,
        'hasPendingEdits' => null,
        'hasVoiceOfMerchant' => null,
        'mapsUri' => '',
        'newReviewUri' => '',
        'placeId' => ''
    ],
    'moreHours' => [
        [
                'hoursTypeId' => '',
                'periods' => [
                                [
                                                                'closeDay' => '',
                                                                'closeTime' => [
                                                                                                                                'hours' => 0,
                                                                                                                                'minutes' => 0,
                                                                                                                                'nanos' => 0,
                                                                                                                                'seconds' => 0
                                                                ],
                                                                'openDay' => '',
                                                                'openTime' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ]
    ],
    'name' => '',
    'openInfo' => [
        'canReopen' => null,
        'openingDate' => [
                'day' => 0,
                'month' => 0,
                'year' => 0
        ],
        'status' => ''
    ],
    'phoneNumbers' => [
        'additionalPhones' => [
                
        ],
        'primaryPhone' => ''
    ],
    'profile' => [
        'description' => ''
    ],
    'regularHours' => [
        'periods' => [
                [
                                
                ]
        ]
    ],
    'relationshipData' => [
        'childrenLocations' => [
                [
                                'placeId' => '',
                                'relationType' => ''
                ]
        ],
        'parentChain' => '',
        'parentLocation' => [
                
        ]
    ],
    'serviceArea' => [
        'businessType' => '',
        'places' => [
                'placeInfos' => [
                                [
                                                                'placeId' => '',
                                                                'placeName' => ''
                                ]
                ]
        ],
        'regionCode' => ''
    ],
    'serviceItems' => [
        [
                'freeFormServiceItem' => [
                                'category' => '',
                                'label' => [
                                                                'description' => '',
                                                                'displayName' => '',
                                                                'languageCode' => ''
                                ]
                ],
                'price' => [
                                'currencyCode' => '',
                                'nanos' => 0,
                                'units' => ''
                ],
                'structuredServiceItem' => [
                                'description' => '',
                                'serviceTypeId' => ''
                ]
        ]
    ],
    'specialHours' => [
        'specialHourPeriods' => [
                [
                                'closeTime' => [
                                                                
                                ],
                                'closed' => null,
                                'endDate' => [
                                                                
                                ],
                                'openTime' => [
                                                                
                                ],
                                'startDate' => [
                                                                
                                ]
                ]
        ]
    ],
    'storeCode' => '',
    'storefrontAddress' => [
        'addressLines' => [
                
        ],
        'administrativeArea' => '',
        'languageCode' => '',
        'locality' => '',
        'organization' => '',
        'postalCode' => '',
        'recipients' => [
                
        ],
        'regionCode' => '',
        'revision' => 0,
        'sortingCode' => '',
        'sublocality' => ''
    ],
    'title' => '',
    'websiteUri' => ''
  ],
  'pageSize' => 0,
  'query' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/googleLocations:search');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/googleLocations:search' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "location": {
    "adWordsLocationExtensions": {
      "adPhone": ""
    },
    "categories": {
      "additionalCategories": [
        {
          "displayName": "",
          "moreHoursTypes": [
            {
              "displayName": "",
              "hoursTypeId": "",
              "localizedDisplayName": ""
            }
          ],
          "name": "",
          "serviceTypes": [
            {
              "displayName": "",
              "serviceTypeId": ""
            }
          ]
        }
      ],
      "primaryCategory": {}
    },
    "labels": [],
    "languageCode": "",
    "latlng": {
      "latitude": "",
      "longitude": ""
    },
    "metadata": {
      "canDelete": false,
      "canHaveBusinessCalls": false,
      "canHaveFoodMenus": false,
      "canModifyServiceList": false,
      "canOperateHealthData": false,
      "canOperateLocalPost": false,
      "canOperateLodgingData": false,
      "duplicateLocation": "",
      "hasGoogleUpdated": false,
      "hasPendingEdits": false,
      "hasVoiceOfMerchant": false,
      "mapsUri": "",
      "newReviewUri": "",
      "placeId": ""
    },
    "moreHours": [
      {
        "hoursTypeId": "",
        "periods": [
          {
            "closeDay": "",
            "closeTime": {
              "hours": 0,
              "minutes": 0,
              "nanos": 0,
              "seconds": 0
            },
            "openDay": "",
            "openTime": {}
          }
        ]
      }
    ],
    "name": "",
    "openInfo": {
      "canReopen": false,
      "openingDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "status": ""
    },
    "phoneNumbers": {
      "additionalPhones": [],
      "primaryPhone": ""
    },
    "profile": {
      "description": ""
    },
    "regularHours": {
      "periods": [
        {}
      ]
    },
    "relationshipData": {
      "childrenLocations": [
        {
          "placeId": "",
          "relationType": ""
        }
      ],
      "parentChain": "",
      "parentLocation": {}
    },
    "serviceArea": {
      "businessType": "",
      "places": {
        "placeInfos": [
          {
            "placeId": "",
            "placeName": ""
          }
        ]
      },
      "regionCode": ""
    },
    "serviceItems": [
      {
        "freeFormServiceItem": {
          "category": "",
          "label": {
            "description": "",
            "displayName": "",
            "languageCode": ""
          }
        },
        "price": {
          "currencyCode": "",
          "nanos": 0,
          "units": ""
        },
        "structuredServiceItem": {
          "description": "",
          "serviceTypeId": ""
        }
      }
    ],
    "specialHours": {
      "specialHourPeriods": [
        {
          "closeTime": {},
          "closed": false,
          "endDate": {},
          "openTime": {},
          "startDate": {}
        }
      ]
    },
    "storeCode": "",
    "storefrontAddress": {
      "addressLines": [],
      "administrativeArea": "",
      "languageCode": "",
      "locality": "",
      "organization": "",
      "postalCode": "",
      "recipients": [],
      "regionCode": "",
      "revision": 0,
      "sortingCode": "",
      "sublocality": ""
    },
    "title": "",
    "websiteUri": ""
  },
  "pageSize": 0,
  "query": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/googleLocations:search' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "location": {
    "adWordsLocationExtensions": {
      "adPhone": ""
    },
    "categories": {
      "additionalCategories": [
        {
          "displayName": "",
          "moreHoursTypes": [
            {
              "displayName": "",
              "hoursTypeId": "",
              "localizedDisplayName": ""
            }
          ],
          "name": "",
          "serviceTypes": [
            {
              "displayName": "",
              "serviceTypeId": ""
            }
          ]
        }
      ],
      "primaryCategory": {}
    },
    "labels": [],
    "languageCode": "",
    "latlng": {
      "latitude": "",
      "longitude": ""
    },
    "metadata": {
      "canDelete": false,
      "canHaveBusinessCalls": false,
      "canHaveFoodMenus": false,
      "canModifyServiceList": false,
      "canOperateHealthData": false,
      "canOperateLocalPost": false,
      "canOperateLodgingData": false,
      "duplicateLocation": "",
      "hasGoogleUpdated": false,
      "hasPendingEdits": false,
      "hasVoiceOfMerchant": false,
      "mapsUri": "",
      "newReviewUri": "",
      "placeId": ""
    },
    "moreHours": [
      {
        "hoursTypeId": "",
        "periods": [
          {
            "closeDay": "",
            "closeTime": {
              "hours": 0,
              "minutes": 0,
              "nanos": 0,
              "seconds": 0
            },
            "openDay": "",
            "openTime": {}
          }
        ]
      }
    ],
    "name": "",
    "openInfo": {
      "canReopen": false,
      "openingDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "status": ""
    },
    "phoneNumbers": {
      "additionalPhones": [],
      "primaryPhone": ""
    },
    "profile": {
      "description": ""
    },
    "regularHours": {
      "periods": [
        {}
      ]
    },
    "relationshipData": {
      "childrenLocations": [
        {
          "placeId": "",
          "relationType": ""
        }
      ],
      "parentChain": "",
      "parentLocation": {}
    },
    "serviceArea": {
      "businessType": "",
      "places": {
        "placeInfos": [
          {
            "placeId": "",
            "placeName": ""
          }
        ]
      },
      "regionCode": ""
    },
    "serviceItems": [
      {
        "freeFormServiceItem": {
          "category": "",
          "label": {
            "description": "",
            "displayName": "",
            "languageCode": ""
          }
        },
        "price": {
          "currencyCode": "",
          "nanos": 0,
          "units": ""
        },
        "structuredServiceItem": {
          "description": "",
          "serviceTypeId": ""
        }
      }
    ],
    "specialHours": {
      "specialHourPeriods": [
        {
          "closeTime": {},
          "closed": false,
          "endDate": {},
          "openTime": {},
          "startDate": {}
        }
      ]
    },
    "storeCode": "",
    "storefrontAddress": {
      "addressLines": [],
      "administrativeArea": "",
      "languageCode": "",
      "locality": "",
      "organization": "",
      "postalCode": "",
      "recipients": [],
      "regionCode": "",
      "revision": 0,
      "sortingCode": "",
      "sublocality": ""
    },
    "title": "",
    "websiteUri": ""
  },
  "pageSize": 0,
  "query": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/googleLocations:search", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/googleLocations:search"

payload = {
    "location": {
        "adWordsLocationExtensions": { "adPhone": "" },
        "categories": {
            "additionalCategories": [
                {
                    "displayName": "",
                    "moreHoursTypes": [
                        {
                            "displayName": "",
                            "hoursTypeId": "",
                            "localizedDisplayName": ""
                        }
                    ],
                    "name": "",
                    "serviceTypes": [
                        {
                            "displayName": "",
                            "serviceTypeId": ""
                        }
                    ]
                }
            ],
            "primaryCategory": {}
        },
        "labels": [],
        "languageCode": "",
        "latlng": {
            "latitude": "",
            "longitude": ""
        },
        "metadata": {
            "canDelete": False,
            "canHaveBusinessCalls": False,
            "canHaveFoodMenus": False,
            "canModifyServiceList": False,
            "canOperateHealthData": False,
            "canOperateLocalPost": False,
            "canOperateLodgingData": False,
            "duplicateLocation": "",
            "hasGoogleUpdated": False,
            "hasPendingEdits": False,
            "hasVoiceOfMerchant": False,
            "mapsUri": "",
            "newReviewUri": "",
            "placeId": ""
        },
        "moreHours": [
            {
                "hoursTypeId": "",
                "periods": [
                    {
                        "closeDay": "",
                        "closeTime": {
                            "hours": 0,
                            "minutes": 0,
                            "nanos": 0,
                            "seconds": 0
                        },
                        "openDay": "",
                        "openTime": {}
                    }
                ]
            }
        ],
        "name": "",
        "openInfo": {
            "canReopen": False,
            "openingDate": {
                "day": 0,
                "month": 0,
                "year": 0
            },
            "status": ""
        },
        "phoneNumbers": {
            "additionalPhones": [],
            "primaryPhone": ""
        },
        "profile": { "description": "" },
        "regularHours": { "periods": [{}] },
        "relationshipData": {
            "childrenLocations": [
                {
                    "placeId": "",
                    "relationType": ""
                }
            ],
            "parentChain": "",
            "parentLocation": {}
        },
        "serviceArea": {
            "businessType": "",
            "places": { "placeInfos": [
                    {
                        "placeId": "",
                        "placeName": ""
                    }
                ] },
            "regionCode": ""
        },
        "serviceItems": [
            {
                "freeFormServiceItem": {
                    "category": "",
                    "label": {
                        "description": "",
                        "displayName": "",
                        "languageCode": ""
                    }
                },
                "price": {
                    "currencyCode": "",
                    "nanos": 0,
                    "units": ""
                },
                "structuredServiceItem": {
                    "description": "",
                    "serviceTypeId": ""
                }
            }
        ],
        "specialHours": { "specialHourPeriods": [
                {
                    "closeTime": {},
                    "closed": False,
                    "endDate": {},
                    "openTime": {},
                    "startDate": {}
                }
            ] },
        "storeCode": "",
        "storefrontAddress": {
            "addressLines": [],
            "administrativeArea": "",
            "languageCode": "",
            "locality": "",
            "organization": "",
            "postalCode": "",
            "recipients": [],
            "regionCode": "",
            "revision": 0,
            "sortingCode": "",
            "sublocality": ""
        },
        "title": "",
        "websiteUri": ""
    },
    "pageSize": 0,
    "query": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/googleLocations:search"

payload <- "{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/googleLocations:search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/googleLocations:search') do |req|
  req.body = "{\n  \"location\": {\n    \"adWordsLocationExtensions\": {\n      \"adPhone\": \"\"\n    },\n    \"categories\": {\n      \"additionalCategories\": [\n        {\n          \"displayName\": \"\",\n          \"moreHoursTypes\": [\n            {\n              \"displayName\": \"\",\n              \"hoursTypeId\": \"\",\n              \"localizedDisplayName\": \"\"\n            }\n          ],\n          \"name\": \"\",\n          \"serviceTypes\": [\n            {\n              \"displayName\": \"\",\n              \"serviceTypeId\": \"\"\n            }\n          ]\n        }\n      ],\n      \"primaryCategory\": {}\n    },\n    \"labels\": [],\n    \"languageCode\": \"\",\n    \"latlng\": {\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    },\n    \"metadata\": {\n      \"canDelete\": false,\n      \"canHaveBusinessCalls\": false,\n      \"canHaveFoodMenus\": false,\n      \"canModifyServiceList\": false,\n      \"canOperateHealthData\": false,\n      \"canOperateLocalPost\": false,\n      \"canOperateLodgingData\": false,\n      \"duplicateLocation\": \"\",\n      \"hasGoogleUpdated\": false,\n      \"hasPendingEdits\": false,\n      \"hasVoiceOfMerchant\": false,\n      \"mapsUri\": \"\",\n      \"newReviewUri\": \"\",\n      \"placeId\": \"\"\n    },\n    \"moreHours\": [\n      {\n        \"hoursTypeId\": \"\",\n        \"periods\": [\n          {\n            \"closeDay\": \"\",\n            \"closeTime\": {\n              \"hours\": 0,\n              \"minutes\": 0,\n              \"nanos\": 0,\n              \"seconds\": 0\n            },\n            \"openDay\": \"\",\n            \"openTime\": {}\n          }\n        ]\n      }\n    ],\n    \"name\": \"\",\n    \"openInfo\": {\n      \"canReopen\": false,\n      \"openingDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"status\": \"\"\n    },\n    \"phoneNumbers\": {\n      \"additionalPhones\": [],\n      \"primaryPhone\": \"\"\n    },\n    \"profile\": {\n      \"description\": \"\"\n    },\n    \"regularHours\": {\n      \"periods\": [\n        {}\n      ]\n    },\n    \"relationshipData\": {\n      \"childrenLocations\": [\n        {\n          \"placeId\": \"\",\n          \"relationType\": \"\"\n        }\n      ],\n      \"parentChain\": \"\",\n      \"parentLocation\": {}\n    },\n    \"serviceArea\": {\n      \"businessType\": \"\",\n      \"places\": {\n        \"placeInfos\": [\n          {\n            \"placeId\": \"\",\n            \"placeName\": \"\"\n          }\n        ]\n      },\n      \"regionCode\": \"\"\n    },\n    \"serviceItems\": [\n      {\n        \"freeFormServiceItem\": {\n          \"category\": \"\",\n          \"label\": {\n            \"description\": \"\",\n            \"displayName\": \"\",\n            \"languageCode\": \"\"\n          }\n        },\n        \"price\": {\n          \"currencyCode\": \"\",\n          \"nanos\": 0,\n          \"units\": \"\"\n        },\n        \"structuredServiceItem\": {\n          \"description\": \"\",\n          \"serviceTypeId\": \"\"\n        }\n      }\n    ],\n    \"specialHours\": {\n      \"specialHourPeriods\": [\n        {\n          \"closeTime\": {},\n          \"closed\": false,\n          \"endDate\": {},\n          \"openTime\": {},\n          \"startDate\": {}\n        }\n      ]\n    },\n    \"storeCode\": \"\",\n    \"storefrontAddress\": {\n      \"addressLines\": [],\n      \"administrativeArea\": \"\",\n      \"languageCode\": \"\",\n      \"locality\": \"\",\n      \"organization\": \"\",\n      \"postalCode\": \"\",\n      \"recipients\": [],\n      \"regionCode\": \"\",\n      \"revision\": 0,\n      \"sortingCode\": \"\",\n      \"sublocality\": \"\"\n    },\n    \"title\": \"\",\n    \"websiteUri\": \"\"\n  },\n  \"pageSize\": 0,\n  \"query\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/googleLocations:search";

    let payload = json!({
        "location": json!({
            "adWordsLocationExtensions": json!({"adPhone": ""}),
            "categories": json!({
                "additionalCategories": (
                    json!({
                        "displayName": "",
                        "moreHoursTypes": (
                            json!({
                                "displayName": "",
                                "hoursTypeId": "",
                                "localizedDisplayName": ""
                            })
                        ),
                        "name": "",
                        "serviceTypes": (
                            json!({
                                "displayName": "",
                                "serviceTypeId": ""
                            })
                        )
                    })
                ),
                "primaryCategory": json!({})
            }),
            "labels": (),
            "languageCode": "",
            "latlng": json!({
                "latitude": "",
                "longitude": ""
            }),
            "metadata": json!({
                "canDelete": false,
                "canHaveBusinessCalls": false,
                "canHaveFoodMenus": false,
                "canModifyServiceList": false,
                "canOperateHealthData": false,
                "canOperateLocalPost": false,
                "canOperateLodgingData": false,
                "duplicateLocation": "",
                "hasGoogleUpdated": false,
                "hasPendingEdits": false,
                "hasVoiceOfMerchant": false,
                "mapsUri": "",
                "newReviewUri": "",
                "placeId": ""
            }),
            "moreHours": (
                json!({
                    "hoursTypeId": "",
                    "periods": (
                        json!({
                            "closeDay": "",
                            "closeTime": json!({
                                "hours": 0,
                                "minutes": 0,
                                "nanos": 0,
                                "seconds": 0
                            }),
                            "openDay": "",
                            "openTime": json!({})
                        })
                    )
                })
            ),
            "name": "",
            "openInfo": json!({
                "canReopen": false,
                "openingDate": json!({
                    "day": 0,
                    "month": 0,
                    "year": 0
                }),
                "status": ""
            }),
            "phoneNumbers": json!({
                "additionalPhones": (),
                "primaryPhone": ""
            }),
            "profile": json!({"description": ""}),
            "regularHours": json!({"periods": (json!({}))}),
            "relationshipData": json!({
                "childrenLocations": (
                    json!({
                        "placeId": "",
                        "relationType": ""
                    })
                ),
                "parentChain": "",
                "parentLocation": json!({})
            }),
            "serviceArea": json!({
                "businessType": "",
                "places": json!({"placeInfos": (
                        json!({
                            "placeId": "",
                            "placeName": ""
                        })
                    )}),
                "regionCode": ""
            }),
            "serviceItems": (
                json!({
                    "freeFormServiceItem": json!({
                        "category": "",
                        "label": json!({
                            "description": "",
                            "displayName": "",
                            "languageCode": ""
                        })
                    }),
                    "price": json!({
                        "currencyCode": "",
                        "nanos": 0,
                        "units": ""
                    }),
                    "structuredServiceItem": json!({
                        "description": "",
                        "serviceTypeId": ""
                    })
                })
            ),
            "specialHours": json!({"specialHourPeriods": (
                    json!({
                        "closeTime": json!({}),
                        "closed": false,
                        "endDate": json!({}),
                        "openTime": json!({}),
                        "startDate": json!({})
                    })
                )}),
            "storeCode": "",
            "storefrontAddress": json!({
                "addressLines": (),
                "administrativeArea": "",
                "languageCode": "",
                "locality": "",
                "organization": "",
                "postalCode": "",
                "recipients": (),
                "regionCode": "",
                "revision": 0,
                "sortingCode": "",
                "sublocality": ""
            }),
            "title": "",
            "websiteUri": ""
        }),
        "pageSize": 0,
        "query": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/googleLocations:search \
  --header 'content-type: application/json' \
  --data '{
  "location": {
    "adWordsLocationExtensions": {
      "adPhone": ""
    },
    "categories": {
      "additionalCategories": [
        {
          "displayName": "",
          "moreHoursTypes": [
            {
              "displayName": "",
              "hoursTypeId": "",
              "localizedDisplayName": ""
            }
          ],
          "name": "",
          "serviceTypes": [
            {
              "displayName": "",
              "serviceTypeId": ""
            }
          ]
        }
      ],
      "primaryCategory": {}
    },
    "labels": [],
    "languageCode": "",
    "latlng": {
      "latitude": "",
      "longitude": ""
    },
    "metadata": {
      "canDelete": false,
      "canHaveBusinessCalls": false,
      "canHaveFoodMenus": false,
      "canModifyServiceList": false,
      "canOperateHealthData": false,
      "canOperateLocalPost": false,
      "canOperateLodgingData": false,
      "duplicateLocation": "",
      "hasGoogleUpdated": false,
      "hasPendingEdits": false,
      "hasVoiceOfMerchant": false,
      "mapsUri": "",
      "newReviewUri": "",
      "placeId": ""
    },
    "moreHours": [
      {
        "hoursTypeId": "",
        "periods": [
          {
            "closeDay": "",
            "closeTime": {
              "hours": 0,
              "minutes": 0,
              "nanos": 0,
              "seconds": 0
            },
            "openDay": "",
            "openTime": {}
          }
        ]
      }
    ],
    "name": "",
    "openInfo": {
      "canReopen": false,
      "openingDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "status": ""
    },
    "phoneNumbers": {
      "additionalPhones": [],
      "primaryPhone": ""
    },
    "profile": {
      "description": ""
    },
    "regularHours": {
      "periods": [
        {}
      ]
    },
    "relationshipData": {
      "childrenLocations": [
        {
          "placeId": "",
          "relationType": ""
        }
      ],
      "parentChain": "",
      "parentLocation": {}
    },
    "serviceArea": {
      "businessType": "",
      "places": {
        "placeInfos": [
          {
            "placeId": "",
            "placeName": ""
          }
        ]
      },
      "regionCode": ""
    },
    "serviceItems": [
      {
        "freeFormServiceItem": {
          "category": "",
          "label": {
            "description": "",
            "displayName": "",
            "languageCode": ""
          }
        },
        "price": {
          "currencyCode": "",
          "nanos": 0,
          "units": ""
        },
        "structuredServiceItem": {
          "description": "",
          "serviceTypeId": ""
        }
      }
    ],
    "specialHours": {
      "specialHourPeriods": [
        {
          "closeTime": {},
          "closed": false,
          "endDate": {},
          "openTime": {},
          "startDate": {}
        }
      ]
    },
    "storeCode": "",
    "storefrontAddress": {
      "addressLines": [],
      "administrativeArea": "",
      "languageCode": "",
      "locality": "",
      "organization": "",
      "postalCode": "",
      "recipients": [],
      "regionCode": "",
      "revision": 0,
      "sortingCode": "",
      "sublocality": ""
    },
    "title": "",
    "websiteUri": ""
  },
  "pageSize": 0,
  "query": ""
}'
echo '{
  "location": {
    "adWordsLocationExtensions": {
      "adPhone": ""
    },
    "categories": {
      "additionalCategories": [
        {
          "displayName": "",
          "moreHoursTypes": [
            {
              "displayName": "",
              "hoursTypeId": "",
              "localizedDisplayName": ""
            }
          ],
          "name": "",
          "serviceTypes": [
            {
              "displayName": "",
              "serviceTypeId": ""
            }
          ]
        }
      ],
      "primaryCategory": {}
    },
    "labels": [],
    "languageCode": "",
    "latlng": {
      "latitude": "",
      "longitude": ""
    },
    "metadata": {
      "canDelete": false,
      "canHaveBusinessCalls": false,
      "canHaveFoodMenus": false,
      "canModifyServiceList": false,
      "canOperateHealthData": false,
      "canOperateLocalPost": false,
      "canOperateLodgingData": false,
      "duplicateLocation": "",
      "hasGoogleUpdated": false,
      "hasPendingEdits": false,
      "hasVoiceOfMerchant": false,
      "mapsUri": "",
      "newReviewUri": "",
      "placeId": ""
    },
    "moreHours": [
      {
        "hoursTypeId": "",
        "periods": [
          {
            "closeDay": "",
            "closeTime": {
              "hours": 0,
              "minutes": 0,
              "nanos": 0,
              "seconds": 0
            },
            "openDay": "",
            "openTime": {}
          }
        ]
      }
    ],
    "name": "",
    "openInfo": {
      "canReopen": false,
      "openingDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "status": ""
    },
    "phoneNumbers": {
      "additionalPhones": [],
      "primaryPhone": ""
    },
    "profile": {
      "description": ""
    },
    "regularHours": {
      "periods": [
        {}
      ]
    },
    "relationshipData": {
      "childrenLocations": [
        {
          "placeId": "",
          "relationType": ""
        }
      ],
      "parentChain": "",
      "parentLocation": {}
    },
    "serviceArea": {
      "businessType": "",
      "places": {
        "placeInfos": [
          {
            "placeId": "",
            "placeName": ""
          }
        ]
      },
      "regionCode": ""
    },
    "serviceItems": [
      {
        "freeFormServiceItem": {
          "category": "",
          "label": {
            "description": "",
            "displayName": "",
            "languageCode": ""
          }
        },
        "price": {
          "currencyCode": "",
          "nanos": 0,
          "units": ""
        },
        "structuredServiceItem": {
          "description": "",
          "serviceTypeId": ""
        }
      }
    ],
    "specialHours": {
      "specialHourPeriods": [
        {
          "closeTime": {},
          "closed": false,
          "endDate": {},
          "openTime": {},
          "startDate": {}
        }
      ]
    },
    "storeCode": "",
    "storefrontAddress": {
      "addressLines": [],
      "administrativeArea": "",
      "languageCode": "",
      "locality": "",
      "organization": "",
      "postalCode": "",
      "recipients": [],
      "regionCode": "",
      "revision": 0,
      "sortingCode": "",
      "sublocality": ""
    },
    "title": "",
    "websiteUri": ""
  },
  "pageSize": 0,
  "query": ""
}' |  \
  http POST {{baseUrl}}/v1/googleLocations:search \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "location": {\n    "adWordsLocationExtensions": {\n      "adPhone": ""\n    },\n    "categories": {\n      "additionalCategories": [\n        {\n          "displayName": "",\n          "moreHoursTypes": [\n            {\n              "displayName": "",\n              "hoursTypeId": "",\n              "localizedDisplayName": ""\n            }\n          ],\n          "name": "",\n          "serviceTypes": [\n            {\n              "displayName": "",\n              "serviceTypeId": ""\n            }\n          ]\n        }\n      ],\n      "primaryCategory": {}\n    },\n    "labels": [],\n    "languageCode": "",\n    "latlng": {\n      "latitude": "",\n      "longitude": ""\n    },\n    "metadata": {\n      "canDelete": false,\n      "canHaveBusinessCalls": false,\n      "canHaveFoodMenus": false,\n      "canModifyServiceList": false,\n      "canOperateHealthData": false,\n      "canOperateLocalPost": false,\n      "canOperateLodgingData": false,\n      "duplicateLocation": "",\n      "hasGoogleUpdated": false,\n      "hasPendingEdits": false,\n      "hasVoiceOfMerchant": false,\n      "mapsUri": "",\n      "newReviewUri": "",\n      "placeId": ""\n    },\n    "moreHours": [\n      {\n        "hoursTypeId": "",\n        "periods": [\n          {\n            "closeDay": "",\n            "closeTime": {\n              "hours": 0,\n              "minutes": 0,\n              "nanos": 0,\n              "seconds": 0\n            },\n            "openDay": "",\n            "openTime": {}\n          }\n        ]\n      }\n    ],\n    "name": "",\n    "openInfo": {\n      "canReopen": false,\n      "openingDate": {\n        "day": 0,\n        "month": 0,\n        "year": 0\n      },\n      "status": ""\n    },\n    "phoneNumbers": {\n      "additionalPhones": [],\n      "primaryPhone": ""\n    },\n    "profile": {\n      "description": ""\n    },\n    "regularHours": {\n      "periods": [\n        {}\n      ]\n    },\n    "relationshipData": {\n      "childrenLocations": [\n        {\n          "placeId": "",\n          "relationType": ""\n        }\n      ],\n      "parentChain": "",\n      "parentLocation": {}\n    },\n    "serviceArea": {\n      "businessType": "",\n      "places": {\n        "placeInfos": [\n          {\n            "placeId": "",\n            "placeName": ""\n          }\n        ]\n      },\n      "regionCode": ""\n    },\n    "serviceItems": [\n      {\n        "freeFormServiceItem": {\n          "category": "",\n          "label": {\n            "description": "",\n            "displayName": "",\n            "languageCode": ""\n          }\n        },\n        "price": {\n          "currencyCode": "",\n          "nanos": 0,\n          "units": ""\n        },\n        "structuredServiceItem": {\n          "description": "",\n          "serviceTypeId": ""\n        }\n      }\n    ],\n    "specialHours": {\n      "specialHourPeriods": [\n        {\n          "closeTime": {},\n          "closed": false,\n          "endDate": {},\n          "openTime": {},\n          "startDate": {}\n        }\n      ]\n    },\n    "storeCode": "",\n    "storefrontAddress": {\n      "addressLines": [],\n      "administrativeArea": "",\n      "languageCode": "",\n      "locality": "",\n      "organization": "",\n      "postalCode": "",\n      "recipients": [],\n      "regionCode": "",\n      "revision": 0,\n      "sortingCode": "",\n      "sublocality": ""\n    },\n    "title": "",\n    "websiteUri": ""\n  },\n  "pageSize": 0,\n  "query": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/googleLocations:search
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "location": [
    "adWordsLocationExtensions": ["adPhone": ""],
    "categories": [
      "additionalCategories": [
        [
          "displayName": "",
          "moreHoursTypes": [
            [
              "displayName": "",
              "hoursTypeId": "",
              "localizedDisplayName": ""
            ]
          ],
          "name": "",
          "serviceTypes": [
            [
              "displayName": "",
              "serviceTypeId": ""
            ]
          ]
        ]
      ],
      "primaryCategory": []
    ],
    "labels": [],
    "languageCode": "",
    "latlng": [
      "latitude": "",
      "longitude": ""
    ],
    "metadata": [
      "canDelete": false,
      "canHaveBusinessCalls": false,
      "canHaveFoodMenus": false,
      "canModifyServiceList": false,
      "canOperateHealthData": false,
      "canOperateLocalPost": false,
      "canOperateLodgingData": false,
      "duplicateLocation": "",
      "hasGoogleUpdated": false,
      "hasPendingEdits": false,
      "hasVoiceOfMerchant": false,
      "mapsUri": "",
      "newReviewUri": "",
      "placeId": ""
    ],
    "moreHours": [
      [
        "hoursTypeId": "",
        "periods": [
          [
            "closeDay": "",
            "closeTime": [
              "hours": 0,
              "minutes": 0,
              "nanos": 0,
              "seconds": 0
            ],
            "openDay": "",
            "openTime": []
          ]
        ]
      ]
    ],
    "name": "",
    "openInfo": [
      "canReopen": false,
      "openingDate": [
        "day": 0,
        "month": 0,
        "year": 0
      ],
      "status": ""
    ],
    "phoneNumbers": [
      "additionalPhones": [],
      "primaryPhone": ""
    ],
    "profile": ["description": ""],
    "regularHours": ["periods": [[]]],
    "relationshipData": [
      "childrenLocations": [
        [
          "placeId": "",
          "relationType": ""
        ]
      ],
      "parentChain": "",
      "parentLocation": []
    ],
    "serviceArea": [
      "businessType": "",
      "places": ["placeInfos": [
          [
            "placeId": "",
            "placeName": ""
          ]
        ]],
      "regionCode": ""
    ],
    "serviceItems": [
      [
        "freeFormServiceItem": [
          "category": "",
          "label": [
            "description": "",
            "displayName": "",
            "languageCode": ""
          ]
        ],
        "price": [
          "currencyCode": "",
          "nanos": 0,
          "units": ""
        ],
        "structuredServiceItem": [
          "description": "",
          "serviceTypeId": ""
        ]
      ]
    ],
    "specialHours": ["specialHourPeriods": [
        [
          "closeTime": [],
          "closed": false,
          "endDate": [],
          "openTime": [],
          "startDate": []
        ]
      ]],
    "storeCode": "",
    "storefrontAddress": [
      "addressLines": [],
      "administrativeArea": "",
      "languageCode": "",
      "locality": "",
      "organization": "",
      "postalCode": "",
      "recipients": [],
      "regionCode": "",
      "revision": 0,
      "sortingCode": "",
      "sublocality": ""
    ],
    "title": "",
    "websiteUri": ""
  ],
  "pageSize": 0,
  "query": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/googleLocations:search")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST mybusinessbusinessinformation.locations.associate
{{baseUrl}}/v1/:name:associate
QUERY PARAMS

name
BODY json

{
  "placeId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:associate");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"placeId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/:name:associate" {:content-type :json
                                                               :form-params {:placeId ""}})
require "http/client"

url = "{{baseUrl}}/v1/:name:associate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"placeId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/:name:associate"),
    Content = new StringContent("{\n  \"placeId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:associate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"placeId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:name:associate"

	payload := strings.NewReader("{\n  \"placeId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/:name:associate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 19

{
  "placeId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:associate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"placeId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name:associate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"placeId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"placeId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name:associate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:associate")
  .header("content-type", "application/json")
  .body("{\n  \"placeId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  placeId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/:name:associate');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:associate',
  headers: {'content-type': 'application/json'},
  data: {placeId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name:associate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"placeId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:name:associate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "placeId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"placeId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name:associate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:name:associate',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({placeId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:associate',
  headers: {'content-type': 'application/json'},
  body: {placeId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/:name:associate');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  placeId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:associate',
  headers: {'content-type': 'application/json'},
  data: {placeId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:name:associate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"placeId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"placeId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:associate"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:name:associate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"placeId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:name:associate",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'placeId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:associate', [
  'body' => '{
  "placeId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:associate');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'placeId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'placeId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:associate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:associate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "placeId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:associate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "placeId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"placeId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/:name:associate", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:name:associate"

payload = { "placeId": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:name:associate"

payload <- "{\n  \"placeId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:name:associate")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"placeId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/:name:associate') do |req|
  req.body = "{\n  \"placeId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:name:associate";

    let payload = json!({"placeId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/:name:associate \
  --header 'content-type: application/json' \
  --data '{
  "placeId": ""
}'
echo '{
  "placeId": ""
}' |  \
  http POST {{baseUrl}}/v1/:name:associate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "placeId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/:name:associate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["placeId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:associate")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET mybusinessbusinessinformation.locations.attributes.getGoogleUpdated
{{baseUrl}}/v1/:name:getGoogleUpdated
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:getGoogleUpdated");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/:name:getGoogleUpdated")
require "http/client"

url = "{{baseUrl}}/v1/:name:getGoogleUpdated"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/:name:getGoogleUpdated"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:getGoogleUpdated");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:name:getGoogleUpdated"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/:name:getGoogleUpdated HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:name:getGoogleUpdated")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name:getGoogleUpdated"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name:getGoogleUpdated")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:name:getGoogleUpdated")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/:name:getGoogleUpdated');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/:name:getGoogleUpdated'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name:getGoogleUpdated';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:name:getGoogleUpdated',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name:getGoogleUpdated")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:name:getGoogleUpdated',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/:name:getGoogleUpdated'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/:name:getGoogleUpdated');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/:name:getGoogleUpdated'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:name:getGoogleUpdated';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:getGoogleUpdated"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:name:getGoogleUpdated" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:name:getGoogleUpdated",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/:name:getGoogleUpdated');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:getGoogleUpdated');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:name:getGoogleUpdated');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:getGoogleUpdated' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:getGoogleUpdated' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/:name:getGoogleUpdated")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:name:getGoogleUpdated"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:name:getGoogleUpdated"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:name:getGoogleUpdated")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/:name:getGoogleUpdated') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:name:getGoogleUpdated";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/:name:getGoogleUpdated
http GET {{baseUrl}}/v1/:name:getGoogleUpdated
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:name:getGoogleUpdated
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:getGoogleUpdated")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST mybusinessbusinessinformation.locations.clearLocationAssociation
{{baseUrl}}/v1/:name:clearLocationAssociation
QUERY PARAMS

name
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name:clearLocationAssociation");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v1/:name:clearLocationAssociation" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v1/:name:clearLocationAssociation"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/:name:clearLocationAssociation"),
    Content = new StringContent("{}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:clearLocationAssociation");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:name:clearLocationAssociation"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v1/:name:clearLocationAssociation HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:clearLocationAssociation")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name:clearLocationAssociation"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name:clearLocationAssociation")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:clearLocationAssociation")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v1/:name:clearLocationAssociation');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:clearLocationAssociation',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name:clearLocationAssociation';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:name:clearLocationAssociation',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name:clearLocationAssociation")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:name:clearLocationAssociation',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:clearLocationAssociation',
  headers: {'content-type': 'application/json'},
  body: {},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v1/:name:clearLocationAssociation');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:clearLocationAssociation',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:name:clearLocationAssociation';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:clearLocationAssociation"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:name:clearLocationAssociation" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:name:clearLocationAssociation",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:clearLocationAssociation', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name:clearLocationAssociation');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:clearLocationAssociation');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:clearLocationAssociation' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:clearLocationAssociation' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v1/:name:clearLocationAssociation", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:name:clearLocationAssociation"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:name:clearLocationAssociation"

payload <- "{}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:name:clearLocationAssociation")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v1/:name:clearLocationAssociation') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:name:clearLocationAssociation";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/:name:clearLocationAssociation \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v1/:name:clearLocationAssociation \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v1/:name:clearLocationAssociation
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name:clearLocationAssociation")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE mybusinessbusinessinformation.locations.delete
{{baseUrl}}/v1/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v1/:name")
require "http/client"

url = "{{baseUrl}}/v1/:name"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/v1/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:name"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/v1/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v1/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v1/:name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/v1/:name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/v1/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:name',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/v1/:name'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v1/:name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/v1/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:name" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/v1/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v1/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:name"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:name"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/v1/:name') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:name";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/v1/:name
http DELETE {{baseUrl}}/v1/:name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v1/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET mybusinessbusinessinformation.locations.getAttributes
{{baseUrl}}/v1/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v1/:name")
require "http/client"

url = "{{baseUrl}}/v1/:name"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v1/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:name"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v1/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v1/:name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v1/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v1/:name'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v1/:name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v1/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v1/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v1/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v1/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:name";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v1/:name
http GET {{baseUrl}}/v1/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PATCH mybusinessbusinessinformation.locations.updateAttributes
{{baseUrl}}/v1/:name
QUERY PARAMS

name
BODY json

{
  "attributes": [
    {
      "name": "",
      "repeatedEnumValue": {
        "setValues": [],
        "unsetValues": []
      },
      "uriValues": [
        {
          "uri": ""
        }
      ],
      "valueType": "",
      "values": []
    }
  ],
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v1/:name" {:content-type :json
                                                      :form-params {:attributes [{:name ""
                                                                                  :repeatedEnumValue {:setValues []
                                                                                                      :unsetValues []}
                                                                                  :uriValues [{:uri ""}]
                                                                                  :valueType ""
                                                                                  :values []}]
                                                                    :name ""}})
require "http/client"

url = "{{baseUrl}}/v1/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v1/:name"),
    Content = new StringContent("{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v1/:name"

	payload := strings.NewReader("{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PATCH /baseUrl/v1/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 270

{
  "attributes": [
    {
      "name": "",
      "repeatedEnumValue": {
        "setValues": [],
        "unsetValues": []
      },
      "uriValues": [
        {
          "uri": ""
        }
      ],
      "valueType": "",
      "values": []
    }
  ],
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1/:name")
  .header("content-type", "application/json")
  .body("{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  attributes: [
    {
      name: '',
      repeatedEnumValue: {
        setValues: [],
        unsetValues: []
      },
      uriValues: [
        {
          uri: ''
        }
      ],
      valueType: '',
      values: []
    }
  ],
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v1/:name');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:name',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: [
      {
        name: '',
        repeatedEnumValue: {setValues: [], unsetValues: []},
        uriValues: [{uri: ''}],
        valueType: '',
        values: []
      }
    ],
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":[{"name":"","repeatedEnumValue":{"setValues":[],"unsetValues":[]},"uriValues":[{"uri":""}],"valueType":"","values":[]}],"name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:name',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attributes": [\n    {\n      "name": "",\n      "repeatedEnumValue": {\n        "setValues": [],\n        "unsetValues": []\n      },\n      "uriValues": [\n        {\n          "uri": ""\n        }\n      ],\n      "valueType": "",\n      "values": []\n    }\n  ],\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:name',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  attributes: [
    {
      name: '',
      repeatedEnumValue: {setValues: [], unsetValues: []},
      uriValues: [{uri: ''}],
      valueType: '',
      values: []
    }
  ],
  name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:name',
  headers: {'content-type': 'application/json'},
  body: {
    attributes: [
      {
        name: '',
        repeatedEnumValue: {setValues: [], unsetValues: []},
        uriValues: [{uri: ''}],
        valueType: '',
        values: []
      }
    ],
    name: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/v1/:name');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attributes: [
    {
      name: '',
      repeatedEnumValue: {
        setValues: [],
        unsetValues: []
      },
      uriValues: [
        {
          uri: ''
        }
      ],
      valueType: '',
      values: []
    }
  ],
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:name',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: [
      {
        name: '',
        repeatedEnumValue: {setValues: [], unsetValues: []},
        uriValues: [{uri: ''}],
        valueType: '',
        values: []
      }
    ],
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v1/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":[{"name":"","repeatedEnumValue":{"setValues":[],"unsetValues":[]},"uriValues":[{"uri":""}],"valueType":"","values":[]}],"name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"attributes": @[ @{ @"name": @"", @"repeatedEnumValue": @{ @"setValues": @[  ], @"unsetValues": @[  ] }, @"uriValues": @[ @{ @"uri": @"" } ], @"valueType": @"", @"values": @[  ] } ],
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v1/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'attributes' => [
        [
                'name' => '',
                'repeatedEnumValue' => [
                                'setValues' => [
                                                                
                                ],
                                'unsetValues' => [
                                                                
                                ]
                ],
                'uriValues' => [
                                [
                                                                'uri' => ''
                                ]
                ],
                'valueType' => '',
                'values' => [
                                
                ]
        ]
    ],
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/v1/:name', [
  'body' => '{
  "attributes": [
    {
      "name": "",
      "repeatedEnumValue": {
        "setValues": [],
        "unsetValues": []
      },
      "uriValues": [
        {
          "uri": ""
        }
      ],
      "valueType": "",
      "values": []
    }
  ],
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:name');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributes' => [
    [
        'name' => '',
        'repeatedEnumValue' => [
                'setValues' => [
                                
                ],
                'unsetValues' => [
                                
                ]
        ],
        'uriValues' => [
                [
                                'uri' => ''
                ]
        ],
        'valueType' => '',
        'values' => [
                
        ]
    ]
  ],
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributes' => [
    [
        'name' => '',
        'repeatedEnumValue' => [
                'setValues' => [
                                
                ],
                'unsetValues' => [
                                
                ]
        ],
        'uriValues' => [
                [
                                'uri' => ''
                ]
        ],
        'valueType' => '',
        'values' => [
                
        ]
    ]
  ],
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": [
    {
      "name": "",
      "repeatedEnumValue": {
        "setValues": [],
        "unsetValues": []
      },
      "uriValues": [
        {
          "uri": ""
        }
      ],
      "valueType": "",
      "values": []
    }
  ],
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": [
    {
      "name": "",
      "repeatedEnumValue": {
        "setValues": [],
        "unsetValues": []
      },
      "uriValues": [
        {
          "uri": ""
        }
      ],
      "valueType": "",
      "values": []
    }
  ],
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v1/:name", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v1/:name"

payload = {
    "attributes": [
        {
            "name": "",
            "repeatedEnumValue": {
                "setValues": [],
                "unsetValues": []
            },
            "uriValues": [{ "uri": "" }],
            "valueType": "",
            "values": []
        }
    ],
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v1/:name"

payload <- "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v1/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.patch('/baseUrl/v1/:name') do |req|
  req.body = "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"repeatedEnumValue\": {\n        \"setValues\": [],\n        \"unsetValues\": []\n      },\n      \"uriValues\": [\n        {\n          \"uri\": \"\"\n        }\n      ],\n      \"valueType\": \"\",\n      \"values\": []\n    }\n  ],\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:name";

    let payload = json!({
        "attributes": (
            json!({
                "name": "",
                "repeatedEnumValue": json!({
                    "setValues": (),
                    "unsetValues": ()
                }),
                "uriValues": (json!({"uri": ""})),
                "valueType": "",
                "values": ()
            })
        ),
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v1/:name \
  --header 'content-type: application/json' \
  --data '{
  "attributes": [
    {
      "name": "",
      "repeatedEnumValue": {
        "setValues": [],
        "unsetValues": []
      },
      "uriValues": [
        {
          "uri": ""
        }
      ],
      "valueType": "",
      "values": []
    }
  ],
  "name": ""
}'
echo '{
  "attributes": [
    {
      "name": "",
      "repeatedEnumValue": {
        "setValues": [],
        "unsetValues": []
      },
      "uriValues": [
        {
          "uri": ""
        }
      ],
      "valueType": "",
      "values": []
    }
  ],
  "name": ""
}' |  \
  http PATCH {{baseUrl}}/v1/:name \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "attributes": [\n    {\n      "name": "",\n      "repeatedEnumValue": {\n        "setValues": [],\n        "unsetValues": []\n      },\n      "uriValues": [\n        {\n          "uri": ""\n        }\n      ],\n      "valueType": "",\n      "values": []\n    }\n  ],\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attributes": [
    [
      "name": "",
      "repeatedEnumValue": [
        "setValues": [],
        "unsetValues": []
      ],
      "uriValues": [["uri": ""]],
      "valueType": "",
      "values": []
    ]
  ],
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()