Advertisement
barriosjerson

ShopifyCall Controller

Jan 31st, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. <?php namespace App\Http\Controllers;
  2.  
  3. use App\Http\Requests;
  4. use App\Http\Controllers\Controller;
  5. use \App;
  6. use Illuminate\Http\Request;
  7.  
  8. class ShopifyCall extends Controller {
  9.  
  10.     /**
  11.      * Display a listing of the resource.
  12.      *
  13.      * @return Response
  14.      */
  15.     public function index()
  16.     {
  17.         $sh = App::make('ShopifyAPI',[
  18.         'API_KEY'=>'a1568bd534e2e7a88b21d693bdc73afe',
  19.         'API_SECRET'=>'b15f951478db59369da196e77ea23fb7',
  20.         'SHOP_DOMAIN'=>'shinobishop.myshopify.com']);
  21.         return redirect($sh->installURL(['permissions' => array('write_orders', 'write_products'), 'redirect' => 'http://hotelcms.app/shopify']));
  22.     }
  23. }
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement