Skip to content

Commit e8614ce

Browse files
committed
Update README.md
1 parent 1d9bc8e commit e8614ce

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,25 @@ export BUFFER_PROFILE_ID="0" # (default of 0)
5151
* Gather Access Token and place it after the word "access_token"
5252
* Set BUFFER_PROFILE_ID="0" if you only have one account to post to. Otherwise it's more complicated ;). Find me on Twitter and I can explain [@_ZPH](https://twitter.com/_ZPH).
5353

54+
#### Example
55+
56+
The example below will use your Buffer account and schedule an update to be posted on your connected profiles with the specified IDs.
57+
58+
```
59+
client = Buffer::Client.new(ACCESS_TOKEN)
60+
client.create_update(
61+
body: {
62+
text:
63+
"Today's artist spotlight is on #{artist_name}.
64+
Check out the track, #{track_title}.",
65+
profile_ids: [
66+
'...',
67+
'...',
68+
]
69+
},
70+
)
71+
```
72+
5473
## TODO:
5574

5675
* Improve instructions

0 commit comments

Comments
 (0)