Looking to hire Laravel developers? Try LaraJobs

shopkart-laravel maintained by jsartisan

Description
Simple Product Search Package for Flipkart
Author
Last update
2015/07/28 07:10 (dev-master)
License
Links
Downloads
68
Tags

Comments
comments powered by Disqus

Shopkart-Laravel

Shopkart-Laravel is a very simple package for laravel for making call to Flipkart and Amazon Search APIs.

#composer.json

{
    "require": {
        "jsartisan/shopkart-laravel": "0.1.*"
    }
}
# app.php

'providers' => [
    // ..
    JSArtisan\Shopkart\ShopkartServiceProvider::class,
    
]
# app.php

'aliases' => [
    // ..
    'Shopkart'  => JSArtisan\Shopkart\Facades\Shopkart::class,
    
]
# services.php

	// ..
	'amazon' => [
		'client_id'     	=>  'your_amazon_client_id',
		'client_secret' 	=>  'your_amazon_client_secret/',
		'tag'           	=>  'your_amazon_id_tag',
		'country'       	=>  'your_country_code'
	],
	
	'flipkart' => [
		'client_id'     	=>  'your_flipkart_client_id',
		'client_secret' 	=>  'your_flipkart_client_secret',
		'country'       	=>  '',
		'tag'           	=>  ''
	],
	Shopkart::with('amazon')->search('PS3','Electronics');
	Shopkart::with('flipkart')->search('PS3',5);