jsartisan / shopkart-laravel by jsartisan

Simple Product Search Package for Flipkart
64
6
4
Package Data
Maintainer Username: jsartisan
Maintainer Contact: pawan.stardust@gmail.com (Pawan Kumar)
Package Create Date: 2015-07-27
Package Last Update: 2015-07-28
Language: PHP
License: MIT
Last Refreshed: 2024-11-19 03:03:15
Package Statistics
Total Downloads: 64
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 6
Total Watchers: 4
Total Forks: 2
Total Open Issues: 0

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);