The following guide will show you how to:
You'll need a Fiber account to complete this guide.
A destination object points to a database or blob storage that Fiber can write API data into.
Creating a destination is easy:
postgres://user:password@host:port/database
We recommend creating a separate Postgres user with a limited scope to share with Fiber. Click to learn how.
Next we will create a source in your workspace to pull data from Shopify:
Now that you have a source and a destination, you can create a sync connecting the two.
Now it’s time to choose what types of data you want out of Shopify. You can do that by creating a Collection for each resource you want to load.
You’re now ready to get some data flowing through your sync. All you need now is a Shopify account to pull data from.
There are three ways to add a new Shopify account to an existing sync:
Today we’ll use the API method.
Make the following request, replacing the credential placeholder with value ones:
curl -X POST \
https://api.fiber.dev/sources/:sourceName/accounts \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic base64(CLIENT_ID:CLIENT_SECRET)' \
-d '{
"credentials": {
"myShopifyDomain": "EXAMPLE.myshopify.com",
"accessToken": "ACCESS_TOKEN",
},
}'
Refer to our API Reference to learn more about authentication.
For most supported sources (including Shopify), Fiber will attempt to validate the credentials you pass. That may cause these requests to longer than usual, so be prepared for that.
On success, the new account will be attached to your sync:
The “accounts” tab of the Shopify sync after you register a valid store.
Within two minutes, Fiber will start loading orders from this store into your database.
In the Overview tab, you will see new activity:
Your sync Overview tab after you register your first Shopify account.
Congratulations! You have successfully set up your first integration using Fiber. From here, you can continue to customize your app by adding more sources, destinations, and syncs.