Note that not all resources are added (yet). same as above, but better $categories = LightspeedRetailApi:: api()-> category()-> first( 20) get category with ID 20 $categories = LightspeedRetailApi:: api()-> category()-> get( 20) filter with GET with a limit and custom sorting (full details: ) $categories = LightspeedRetailApi:: api()-> category()-> get( null, ) get all $account = LightspeedRetailApi:: api()-> account()-> get() which means lots of fun! use TimothyDC\ LightspeedRetailApi\ Facades\ LightspeedRetailApi All resources return a Laravel collection. If you would like to alter the redirect you may extend this controller. The SaveAccessTokenController will store the initial access token and make follow-up request for the refresh token.Īfterwards you will be redirected to RouteServiceProvider::HOME. Route:: get( 'your-redirect-uri', ) Configure controller use \ TimothyDC\ LightspeedRetailApi\ Http\ Controllers\ SaveAccessTokenController Update your-redirect-uri with the redirect URI you entered in the API client. Register the following route in your routes/web.php. You provided when configuring your client information via the Lightspeed Retail API Client. Return redirect()-> to( LightspeedRetailApi:: redirectToAuthorizationPortal( $scope)) Īfter requesting your initial access token you will be redirected to the Redirect URI Use TimothyDC\ LightspeedRetailApi\ Facades\ LightspeedRetailApi Excellent deal! Via controller use TimothyDC\ LightspeedRetailApi\ Scope The command will ask you about the scope, and you will get an URL in return. Via command line $ php artisan retail:auth More information on the scopes can be found in the documentation. Choose a $scope from the options in TimothyDC\LightspeedRetailApi\Scope. You can manage the access level to your POS data via a scope. php artisan migrate Request initial access tokenīefore we can request an access token you need to connect your Retail POS to this app. The API tokens are stored in the database, by default. Php artisan vendor:publish -tag= "lightspeed-api:migrations " Php artisan vendor:publish -tag= "lightspeed-api:config " You can publish all resources, or you may choose to publish them separately: php artisan vendor:publish -tag= "lightspeed-api " LIGHTSPEED_RETAIL_API_SECRET=xxx Publish resources envĪfter your API client is approved you will receive a key and secret. Remember the value of your redirect URI, we will need it later on. The API client is developer friendly, you can set as your redirect URI. Register API clientīefore creating an API connection, you will need to sign up for an API client with Lightspeed Retail. To learn more about Lightspeed migration to Shopify click here to review Lightspeed documentation within the Shopify Help Centre.Via Composer composer require timothydc/laravel-lightspeed-retail-api Usageįor general information on how to use the Lightspeed Retail API, refer to the official documentation. You can also delete, and run the import process again if desired should you notice any issues, or encounter difficulties completing your import. In the event you think you missed something during your Lightspeed export, and import into Shopify you can always import again, on top of an existing import.įor more detail check out Import data on top of an existing importwithin the Shopify Help Centre. Step 3 - Review and update your imported dataĪfter importing your data review the results and edit imported information if required.īefore completing your import review check out the Shopify Help Centred for further guidance on some of the other actions you may need to take while reviewing your imported data such as adding product dimensions. You can then select Lightspeed from the drop-down menu. Note: If the platform mentioned on the Store Importer page is not Lightspeed scroll down to the bottom of the page and click Select a different platform. Within your Shopify admin, click Apps followed by Store Importer and using Add File select the exported data from step 1 Step 2 - Import your store data into Shopify Make sure you've installed Lightspeed eCom first before following instructions to export your Lightspeed data to a CSV file. Step 1 - Export your store data from Lightspeed Using a three step process you’ll be able to migrate your data from Lightspeed to Shopify quickly, and with confidence so you get up and running quickly! Did you know that as of September 13th, 2021 that if you're using Lightspeed Retail or Lightspeed Onsite, you can migrate your products to Shopify at ease using the Store Importer?
0 Comments
Leave a Reply. |