Skip to content

Latest commit

 

History

History
220 lines (210 loc) · 29.1 KB

GETTING_STARTED.md

File metadata and controls

220 lines (210 loc) · 29.1 KB

Getting started

Authenticating a shop (the session object)

Obtaining a token from an authentication code

session = BeyondApi::Session.new(api_url: "https://your-shop-name.beyondshop.cloud/api")
session.token.create("your-auth-code")

You can get an authentication code by clicking the Test authorization button in your test shop's cockpit on your custom app's page. Clicking the button will redirect you to the Application Callback URL you have specified, attaching the code as a query parameter.

Obtaining a token from a refresh token

session = BeyondApi::Session.new(api_url: "https://your-shop-name.beyondshop.cloud/api",
                                 refresh_token: "your-refresh-token")
session.token.refresh

Consuming the API

Check the rubydoc documentation for more information on the Beyond API Ruby Client.

Here you can find a list with all available methods: