import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gagelist: {
type: "app",
app: "gagelist",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://gagelist.net/GageList/api/Account/Status`,
headers: {
Authorization: `Bearer ${this.gagelist.$auth.oauth_access_token}`,
"Accept": `application/json`,
},
})
},
})
Finds and retrieves a gage based on its ID in GageList. See the documentation
Updates a specific gage using its ID on GageList. See the documentation
GageList uses OAuth authentication. When you connect your GageList account, Pipedream will open a popup window where you can sign into GageList and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any GageList API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://gagelist.net/api/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=password
POST
https://gagelist.net/api/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=password