1.0.20220809 • Published 2 years ago

@maxim_mazurok/gapi.client.mybusinessbusinessinformation v1.0.20220809

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

TypeScript typings for My Business Business Information API v1

The My Business Business Information API provides an interface for managing business information on Google. For detailed description please check documentation.

Installing

Install typings for My Business Business Information API:

npm install @types/gapi.client.mybusinessbusinessinformation@v1 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load('mybusinessbusinessinformation', 'v1', () => {
  // now we can use gapi.client.mybusinessbusinessinformation
  // ...
});

After that you can use My Business Business Information API resources:

/*
Returns the list of attributes that would be available for a location with the given primary category and country.
*/
await gapi.client.mybusinessbusinessinformation.attributes.list({  });

/*
Returns a list of business categories for the provided language and GConcept ids.
*/
await gapi.client.mybusinessbusinessinformation.categories.batchGet({  });

/*
Returns a list of business categories. Search will match the category name but not the category ID. Search only matches the front of a category name (that is, 'food' may return 'Food Court' but not 'Fast Food Restaurant').
*/
await gapi.client.mybusinessbusinessinformation.categories.list({  });

/*
Gets the specified chain. Returns `NOT_FOUND` if the chain does not exist.
*/
await gapi.client.mybusinessbusinessinformation.chains.get({ name: "name",  });

/*
Searches the chain based on chain name.
*/
await gapi.client.mybusinessbusinessinformation.chains.search({  });

/*
Search all of the possible locations that are a match to the specified request.
*/
await gapi.client.mybusinessbusinessinformation.googleLocations.search({  });

/*
Associates a location to a place ID. Any previous association is overwritten. This operation is only valid if the location is unverified. The association must be valid, that is, it appears in the list of `SearchGoogleLocations`.
*/
await gapi.client.mybusinessbusinessinformation.locations.associate({ name: "name",  });

/*
Clears an association between a location and its place ID. This operation is only valid if the location is unverified.
*/
await gapi.client.mybusinessbusinessinformation.locations.clearLocationAssociation({ name: "name",  });

/*
Deletes a location. If this location cannot be deleted using the API and it is marked so in the `google.mybusiness.businessinformation.v1.LocationState`, use the [Google Business Profile](https://business.google.com/manage/) website.
*/
await gapi.client.mybusinessbusinessinformation.locations.delete({ name: "name",  });

/*
Returns the specified location.
*/
await gapi.client.mybusinessbusinessinformation.locations.get({ name: "name",  });

/*
Looks up all the attributes set for a given location.
*/
await gapi.client.mybusinessbusinessinformation.locations.getAttributes({ name: "name",  });

/*
Gets the Google-updated version of the specified location.
*/
await gapi.client.mybusinessbusinessinformation.locations.getGoogleUpdated({ name: "name",  });

/*
Updates the specified location.
*/
await gapi.client.mybusinessbusinessinformation.locations.patch({ name: "name",  });

/*
Update attributes for a given location.
*/
await gapi.client.mybusinessbusinessinformation.locations.updateAttributes({ name: "name",  });
1.0.20220619

2 years ago

1.0.20220614

2 years ago

1.0.20220612

2 years ago

1.0.20220613

2 years ago

1.0.20220621

2 years ago

1.0.20220620

2 years ago

1.0.20220627

2 years ago

1.0.20220628

2 years ago

1.0.20220625

2 years ago

1.0.20220623

2 years ago

1.0.20220806

2 years ago

1.0.20220803

2 years ago

1.0.20220804

2 years ago

1.0.20220801

2 years ago

1.0.20220802

2 years ago

1.0.20220809

2 years ago

1.0.20220808

2 years ago

1.0.20220706

2 years ago

1.0.20220703

2 years ago

1.0.20220708

2 years ago

1.0.20220718

2 years ago

1.0.20220716

2 years ago

1.0.20220713

2 years ago

1.0.20220714

2 years ago

1.0.20220712

2 years ago

1.0.20220728

2 years ago

1.0.20220727

2 years ago

1.0.20220730

2 years ago

1.0.20220509

2 years ago

1.0.20220506

2 years ago

1.0.20220504

2 years ago

1.0.20220503

2 years ago

1.0.20220512

2 years ago

1.0.20220510

2 years ago

1.0.20220517

2 years ago

1.0.20220518

2 years ago

1.0.20220513

2 years ago

1.0.20220522

2 years ago

1.0.20220528

2 years ago

1.0.20220524

2 years ago

1.0.20220525

2 years ago

1.0.20220531

2 years ago

1.0.20220429

2 years ago

1.0.20220607

2 years ago

1.0.20220608

2 years ago

1.0.20220606

2 years ago

1.0.20220604

2 years ago

1.0.20220601

2 years ago

1.0.20220418

2 years ago

1.0.20220419

2 years ago

1.0.20220415

2 years ago

1.0.20220423

2 years ago

1.0.20220420

2 years ago

1.0.20220427

2 years ago

1.0.20220426

2 years ago

1.0.20220319

2 years ago

1.0.20220402

2 years ago

1.0.20220322

2 years ago

1.0.20220323

2 years ago

1.0.20220409

2 years ago

1.0.20220407

2 years ago

1.0.20220406

2 years ago

1.0.20220326

2 years ago

1.0.20220404

2 years ago

1.0.20220412

2 years ago

1.0.20220413

2 years ago

1.0.20220411

2 years ago

1.0.20220330

2 years ago

1.0.20220302

2 years ago

1.0.20220301

2 years ago

1.0.20220309

2 years ago

1.0.20220307

2 years ago

1.0.20220227

2 years ago

1.0.20220305

2 years ago

1.0.20220312

2 years ago

1.0.20220310

2 years ago

1.0.20220317

2 years ago

1.0.20220315

2 years ago

1.0.20220316

2 years ago

1.0.20220218

2 years ago

1.0.20220216

2 years ago

1.0.20220104

2 years ago

1.0.20220224

2 years ago

1.0.20220221

2 years ago

1.0.20220222

2 years ago

1.0.20220127

2 years ago

1.0.20220201

2 years ago

1.0.20220209

2 years ago

1.0.20220207

2 years ago

1.0.20220208

2 years ago

1.0.20220205

2 years ago

1.0.20220129

2 years ago

1.0.20220215

2 years ago

1.0.20220212

2 years ago

1.0.20220131

2 years ago

1.0.20211130

2 years ago

1.0.20211110

2 years ago

1.0.20211214

2 years ago

1.0.20211116

2 years ago

1.0.20211117

2 years ago

1.0.20211211

2 years ago

1.0.20211112

2 years ago

1.0.20211207

2 years ago

1.0.20211108

3 years ago

1.0.20211203

2 years ago

1.0.20211106

3 years ago

1.0.20211123

2 years ago

1.0.20211124

2 years ago

1.0.20211202

2 years ago

1.0.20211125

2 years ago

1.0.20211119

2 years ago

1.0.20211104

3 years ago

1.0.20211029

3 years ago

1.0.20211102

3 years ago

1.0.20211026

3 years ago

1.0.20211022

3 years ago

1.0.20211025

3 years ago

1.0.20211020

3 years ago

1.0.20211021

3 years ago

1.0.20211006

3 years ago

1.0.20211018

3 years ago

1.0.20211008

3 years ago

1.0.20211012

3 years ago

1.0.20211014

3 years ago

1.0.20211015

3 years ago

1.0.20211005

3 years ago

1.0.20211002

3 years ago

1.0.20210928

3 years ago

1.0.20210929

3 years ago

1.0.20210927

3 years ago

1.0.20210925

3 years ago

1.0.20210921

3 years ago

1.0.20210922

3 years ago

1.0.20210920

3 years ago

1.0.20210918

3 years ago

1.0.20210916

3 years ago

1.0.20210913

3 years ago

1.0.20210910

3 years ago

1.0.20210909

3 years ago