BuildShipBBuildShip
Powered by
ThomasT
BuildShip•2y ago•
7 replies
Thomas

OAuth 2.0 access

Hi I want to use the etsy api via Buildship and I am having troubles recreating a simple api key test in BuildShip:

https://developers.etsy.com/documentation/tutorials/quickstart

So they create a a valid OAuth 2.0 access token to make requests to any scoped endpoint. Is there any tutorial or resource on OAuth 2.0 access with BuildShip ?
Quick Start Tutorial | Etsy Open API v3
This tutorial walks you through building a very simple Node.js application from start to finish. By the end, you will have a working application with a valid OAuth 2.0 access token to make requests to any scoped endpoint.
Solution
Hey @Thomas, to make an Etsy API Call via BuildShip, all you need to do is make a simple call to the Etsy API endpoint, like this:
export default async ({apiKey},{logging}) => {

const url = 'https://api.etsy.com/v3/application/openapi-ping';
const options = {
  method: 'GET',
  headers: {
    "x-api-key": apiKey
  }
};
  const resp = await fetch(url, options);
  const data = await resp.json();
  return data;
}
export default async ({apiKey},{logging}) => {

const url = 'https://api.etsy.com/v3/application/openapi-ping';
const options = {
  method: 'GET',
  headers: {
    "x-api-key": apiKey
  }
};
  const resp = await fetch(url, options);
  const data = await resp.json();
  return data;
}

Here's a boilerplate node that you can copy and paste in your workflow. You can also use the "Modify Node with Al" feature to modify it according to your use case, learn more. Hope this helps :)
Jump to solution
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Cannot migrate to 2.0!
solSsol / ❓・buildship-help
16mo ago
JSON Output in Flowbuilder 2.0
EnVauEEnVau / ❓・buildship-help
14mo ago
Issue Converting Workflows from FlowBuilder 1.0 to 2.0
EnVauEEnVau / ❓・buildship-help
14mo ago
OAuth and Firebase
hemax99#epicHhemax99#epic / ❓・buildship-help
2y ago