Created
January 2, 2015 18:53
-
-
Save zph/a44a12ba7fa233740b18 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| client = Buffer::Client.new(THEIR_OAUTH_TOKEN) | |
| profiles = client.profiles | |
| profile_ids = profiles.map(&:id) | |
| schedules = profiles.schedules | |
| # Will add post to their queue of updates | |
| client.create_update({text: "Some string", profile_ids: profile_ids}) | |
| # There are options for posting to top of queue or specific times. See https://bufferapp.com/developers/api/updates#updatescreate | |
| # and look in lib/buffer/update.rb :). | |
| client.create_update({text: "Some string", profile_ids: profile_ids, other_options...}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment