Build personal relationships at scale. Gist offers live chat, email marketing automation, event tracking, and more.
Go to siteThe Gist API lets you create, read, update, and delete gists. With the Gist API, you can manage your code snippets on GetGist.
Here are some examples of what you can build with the Gist API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gist: {
type: "app",
app: "gist",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.getgist.com/teammates`,
headers: {
Authorization: `Bearer ${this.gist.$auth.api_key}`,
"Content-Type": `application/json`,
},
})
},
})
Gist uses OAuth authentication. When you connect your Gist account, Pipedream will open a popup window where you can sign into Gist and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Gist API.
Pipedream requests the following authorization scopes when you connect your account:
read_contact
write_contact
read_bulk_contacts
write_bulk_contacts
read_conversations
write_conversations
read_events
read_tags
write_tags
read_teams
read_teammates
GET
https://app.getgist.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://web-api.getgist.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}