Gist

Build personal relationships at scale. Gist offers live chat, email marketing automation, event tracking, and more.

Go to site

Gist API Integrations

Build and run workflows using the Gist API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

The 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:

  • Create new gists
  • Read existing gists
  • Update existing gists
  • Delete existing gists
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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`,
      },
    })
  },
})

Authentication

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_contactwrite_contactread_bulk_contactswrite_bulk_contactsread_conversationswrite_conversationsread_eventsread_tagswrite_tagsread_teamsread_teammates
OAuth Request Configurations:
  1. authorization
    GEThttps://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}}
  2. accessToken
    POSThttps://web-api.getgist.com/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}