Skip to content

Instantly share code, notes, and snippets.

@zph
Created January 2, 2015 18:53
Show Gist options
  • Select an option

  • Save zph/a44a12ba7fa233740b18 to your computer and use it in GitHub Desktop.

Select an option

Save zph/a44a12ba7fa233740b18 to your computer and use it in GitHub Desktop.
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