Download the PHP package liviu-hariton/pinmeto-php-api without Composer
On this page you can find all versions of the php package liviu-hariton/pinmeto-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download liviu-hariton/pinmeto-php-api
More information about liviu-hariton/pinmeto-php-api
Files in liviu-hariton/pinmeto-php-api
Package pinmeto-php-api
Short Description A PHP library for interacting with the PinMeTo API
License MIT
Informations about the package pinmeto-php-api
PinMeToAPI PHP Library
PinMeToAPI is a PHP library that provides convenient access to the PinMeTo API, allowing users to interact with PinMeTo's locations data and metrics.
Overview
Integration with PinMeTo offers the ability to fetch information and send updates through PinMeTo API for:
- Locations
- Insights (Google™ and Facebook™)
- Keywords (Google™)
- Reviews (Google™ and Facebook™)
Table Of Content
- Requirements
- Installation
- Usage
- Get all available locations
- Get a specific location
- Create a new location
- Update an existing location
- Get locations metrics data
- Get locations Google keywords
- Get locations ratings
- Get network categories
- License
- PinMeTo official API documentation
- Disclaimer
- Laravel package
Requirements
- a PinMeTo user account with API access enabled
- PHP >= 8.0
- PinMeToAPI uses curl extension for handling HTTP calls. So you need to have the curl extension installed and enabled with PHP.
- json support enabled with PHP
Installation
You can install the PinMeToAPI PHP library via Composer. Run the following command in your terminal:
or add the following to your composer.json file
and run Composer's install or update commands to complete installation
Usage
Make sure to include the autoloader:
Initialize the PinMeToAPI object with your PinMeTo Account ID
, App ID
, and App Secret
values. You can obtain these credentials from your PinMeTo Account Settings here.
Once initialized, you can use various methods provided by the PinMeToAPI class to interact with the PinMeTo API.
Get all available locations
Optionally, you can also pass an array of parameters
Get a specific location
Create a new location
You can also use the "Upsert" option by passing an additional parameter
Update an existing location
Metrics
Get the Google™ or Facebook™ metrics data for all locations
or for a specific location by passing the Store ID
Google keywords
Get the Google™ keywords data for all locations
or for a specific location by passing the Store ID
Ratings
Get the Google™ or Facebook™ ratings data for all locations
or for a specific location by passing the Store ID
Network categories
Get the list of categories per network. The available networks are google
or apple
or facebook
or bing
Response
For every method described here, the response will be a JSON data format. Please find al the details in the PinMeTo official API documentation.
License
This library is licensed under the MIT License. See the LICENSE.md file for details.
PinMeTo official API documentation
- The V2 documentation (locations data) is available on PinMeTo GitHub
- The V3 documentation (locations metrics) is available on PinMeTo API - Documentation
Disclaimer
I am not affiliated with PinMeTo, but I am a developer who sees the value of their location services and wanted to create tools to simplify integration for the PHP community.
While this library facilitate integration with PinMeTo's location services API, it is a separate entity maintained and supported by me. Any issues, questions, or inquiries related to these library should be directed to me and not to PinMeTo.
I greatly appreciate the availability of PinMeTo's API, which has enabled me to create this library and enhance the functionality of applications that rely on location-based services. However, the development and maintenance of this library is solely my responsibility (and any contributors to this repository).
Feel free to explore this library here on GitHub, contribute, and make the most of PinMeTo’s powerful location services!
Laravel package
A Laravel package is available also here.
All versions of pinmeto-php-api with dependencies
ext-curl Version *