Download the PHP package trustedsearch/php-trustedsearch without Composer
On this page you can find all versions of the php package trustedsearch/php-trustedsearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download trustedsearch/php-trustedsearch
More information about trustedsearch/php-trustedsearch
Files in trustedsearch/php-trustedsearch
Package php-trustedsearch
Short Description TRUSTEDSearch PHP Library
License MIT
Homepage http://trustedsearch.org/
Informations about the package php-trustedsearch
php-trustedsearch
Obtain the latest version of the TRUSTEDSearch PHP bindings with:
git clone https://github.com/trustedsearch/php-trustedsearch
Documentation
Please see http://developers.trustedsearch.org/ for up-to-date documentation.
Packagist: https://packagist.org/packages/trustedsearch/php-trustedsearch
Installation
Traditional
To get started, add the following to your PHP script:
require_once("/path/to/php-trustedsearch/lib/TrustedSearch.php");
Composer
Add the line below to your "require" block in your composer file
trustedsearch/php-trustedsearch
Then update your composer
composer update
Usage
To start using the package, you need to be given your sandbox and production public & private keys.
Basic Configuration
Creating a Token.
Tokens are used for whitelabel products.
Version 1 API's
Get All Business for all users locations
See the API documentation for a list of parameters for each API resource.
Get Business Updates for single location
See the API documentation for a list of parameters for each API resource.
Get Business Updates since epoch 1380611103
See the API documentation for a list of parameters for each API resource.
Submit New Business Listings
See the API documentation for a list of parameters for each API resource.
Validating Business Listings
See the API documentation for a list of parameters for each API resource.
Testing
Testing / Simulating a change in a business listing
Version 2 API's
Don't forget to switch versions before a series of these calls:
What's New!
- Detailed error messages that include validation errors.
- Pagination
- CRUD on Resources.
- Standardized responses
Listings
TrustedSearch_Listing::index
Page through and filter down any listing associated w/ your account.
See the API documentation for a list of parameters for each API resource.
Error Handling
Exceptions are thrown when there is an api issue.
Exceptions
- TrustedSearch_Error
- Refer to /lib/TrustedSearch/Errors/Error.php for special exception handle methods
- TrustedSearch_ApiConnectionError
- TrustedSearch_ApiError
- TrustedSearch_AuthenticationError
- TrustedSearch_InvalidRequestError
Output: (Body is formatted for readability.)
Tests
In order to run tests you have to install PHPUnit (https://packagist.org/packages/phpunit/phpunit) via Composer (http://getcomposer.org/) (recommended way):
composer.phar update --dev
Run test suite:
php ./test/TrustedSearch.php
All versions of php-trustedsearch with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *