Skip to content

bodanius/priceparrot-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Price Parrot – Competitor price monitoring

About the API

We find automation really important for any modern business. Therefore we include free API access for every package we offer. Our web API is based on the REST (REpresentational State Transfer) protocol with JSON (JavaScript Object Notation) objects. You can simply integrate competitor prices and price suggesions from Price Parrot into your e-commerce software, such as Shopify, Magento, Opencart or CSCart.

Why you might need it

It is vital in e-commerce to keep pace with price movements. Overpricing your products may result in loss of customers to your competition, whilst underpricing may result in a loss of revenue. Our price monitor makes sure your pricing stays up-to-date with the market.

Subscribe your free trail

Subscribe now for a 14-day free trail. Check our website for more information.

Installation & loading

The code is also available via Composer is the recommended way to install the Price Parrot API. Just add this line to your composer.json file:

"priceparrot/priceparrot": "^1"

or run

composer require priceparrot/priceparrot

Note that the vendor folder and the vendor/autoload.php script are generated by Composer; they are not part of Price Parrot.

A Simple Example

<?php
//Import Price Parrot classes into the global namespace
//These must be at the top of your script, not inside a function
use PriceParrot\PriceParrotClient;

//Load Composer's autoloader
require 'vendor/autoload.php';

//Create an instance with api key and secret (find these here https://backend.priceparrot.io/api)
$priceparrot = new PriceParrotClient($apikey, $secret);

try {
    $product = $priceparrot->FetchProduct('123');
    echo '<pre>' . print_r($product, true) . '</pre>';
} catch (Exception $e) {
    echo "There was a problem loading the product";
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages