@zerodot/buffer 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,68 @@
1
- # Temporary Holding Version
1
+ # @zerodot/buffer
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Create, schedule, edit, and delete social media posts in Buffer. Manage ideas, tags, notes, snippets, post templates, and content items. Read channels, organizations, and post metrics.
4
+
5
+ This package uses the current Buffer GraphQL API (`https://api.buffer.com`). It does not use the old REST API (`api.bufferapp.com`), which is deprecated.
6
+
7
+ ## Install
8
+
9
+ In zerodot, go to **System > Nodes** and install **Buffer**.
10
+
11
+ Manual: install `@zerodot/buffer` where the web app and the worker run, and add it to `ZERODOT_NODE_PACKAGES`.
12
+
13
+ ## Nodes
14
+
15
+ ### Buffer (`buffer.api`)
16
+
17
+ - **Account**: get
18
+ - **Organization**: get many, get configuration
19
+ - **Channel**: get, get many, get daily posting limits, shorten link
20
+ - **Post**: create, get, get many, update, delete, publish now, move in queue, get aggregated metrics
21
+ - **Idea**: create, get many, get groups
22
+ - **Tag**: create, get, get many, update, delete
23
+ - **Content Item**: create, create draft, get, get many, update, update draft, promote draft to posts, delete, add post, remove post
24
+ - **Note**: create, get many, update, delete
25
+ - **Team Member**: get many (members that a Note can mention)
26
+ - **Snippet**: create, get many, update, delete
27
+ - **Post Template**: create, get, get many, update, delete
28
+ - **Asset**: get many
29
+ - **Pinterest Board**: create, refresh
30
+ - **Instagram Audio**: get, search, get trending, get catalog, search catalog
31
+
32
+ Notes:
33
+
34
+ - Each operation is one GraphQL query or mutation. Most IDs come from other operations. Use **Organization > Get Many** to find the **Organization ID**. Use **Channel > Get Many** to find a **Channel ID**.
35
+ - **Create** a post needs a **Channel ID**. **Mode** is **Add To Queue** by default. If you set **Due At** and no mode, the node uses **Custom Scheduled**. **Scheduling Type** is **Automatic** by default. Use **Save To Draft** to keep the post as a draft.
36
+ - Buffer does not host files. **Image URLs**, **Video URL**, and **Assets (JSON)** need public URLs. **Assets (JSON)** is an array. Each entry has one of `image`, `video`, or `document`.
37
+ - **Metadata (JSON)** has options for one network, for example `{"instagram":{"type":"post","shouldShareToFeed":true}}`. A thread uses the `thread` field of the network.
38
+ - **Additional Input (JSON)** adds fields to the input of the call, for fields that the node has no field for.
39
+ - **Update** a post changes only the fields that you set. An empty **Text** keeps the text.
40
+ - **Get many** uses the cursors of the API. Turn on **Return All** to get all pages. The limit is 5000 items.
41
+ - Buffer answers an error of a mutation with HTTP 200. The node turns this error into a node error with the message of Buffer.
42
+ - Some operations are marked **Experimental** or **Preview** in the Buffer documentation (content items, notes, tags, snippets, team members, assets, post templates, Pinterest boards, Instagram audio, move in queue, publish now, get configuration). Buffer can change them with no warning.
43
+ - The Instagram audio operations need a channel that uses Facebook Login.
44
+ - **Get aggregated metrics** is for personal API keys only, and the range is 365 days at most.
45
+
46
+ ## Credentials
47
+
48
+ - **Buffer API key** (`buffer.apiKey`):
49
+ - `apiKey`: the API key. Secret. Make it in Buffer at **Settings > API** (`https://publish.buffer.com/settings/api`). An OAuth 2.0 access token also works in this field.
50
+ - `server`: the API address. Empty means `https://api.buffer.com`.
51
+
52
+ The key acts for your own Buffer account. It can use all organizations and channels of the account. The API is on all Buffer plans, including Free.
53
+
54
+ ## Limits
55
+
56
+ The limits depend on the plan. A key makes requests in three windows that all keys and connections share:
57
+
58
+ | Plan | API keys | 15 minutes | 24 hours | 30 days |
59
+ | ---------- | -------- | ---------- | -------- | ----------------------------------- |
60
+ | Free | 1 | 150 | 600 | 1,000 for each channel, to 3,000 |
61
+ | Essentials | 3 | 450 | 1,800 | 3,000 for each channel, to 30,000 |
62
+ | Team | 5 | 1,500 | 6,000 | 10,000 for each channel, to 100,000 |
63
+
64
+ When a limit is reached, Buffer answers with status 429.
65
+
66
+ ## License
67
+
68
+ AGPL-3.0-only
package/buffer.svg ADDED
@@ -0,0 +1 @@
1
+ <svg fill="#231F20" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Buffer</title><path d="M1.371 5.476L11.943 0l10.686 5.476-10.686 5.495zm3.36 4.81l7.212 3.547 7.288-3.547 3.398 1.655-10.686 5.202L1.371 11.94zm0 6.171l7.212 3.911 7.288-3.91 3.398 1.815L11.943 24 1.371 18.273z"/></svg>