ProductPromotion
Logo

Ruby

made by https://0x3d.site

GitHub - bufferapp/buffer-ruby: Buff is a Ruby Wrapper for the Buffer API
Buff is a Ruby Wrapper for the Buffer API. Contribute to bufferapp/buffer-ruby development by creating an account on GitHub.
Visit Site

GitHub - bufferapp/buffer-ruby: Buff is a Ruby Wrapper for the Buffer API

GitHub - bufferapp/buffer-ruby: Buff is a Ruby Wrapper for the Buffer API

buffer

buffer is a Buffer API Wrapper written in Ruby. It provides more thorough API coverage than the existing gem.

Installation

Coverage Status Build Status Code Climate

For now please git clone [email protected]:bufferapp/buffer-ruby.git the repo

Or

Add this line to your application's Gemfile to include HEAD code:

gem 'buffer', :github => 'bufferapp/buffer-ruby'

And then execute:

$ bundle

Or install RubyGems version, which will receive more attention to stability:

$ gem install buffer

Usage

  • All methods are tested with Rspec and WebMock. Most methods do not have integration tests that reach out to the live Buffer API servers. Proceed with caution until buffer reaches v0.1.0 and submit issues on Github Issues tab.
  • Authentication is not included in this gem (Try OAuth-buffer2) or use the single API key given when registering your own Buffer Dev credentials.
  • Commandline bin is provided to enable posting of updates: buffer Super witty stuff that fits in 140 chars Will post to your first account when setup following instructions below. A more convenient setup is planned in future releases.
  • For convenience load credentials into environment as ENV variables:
export BUFFER_ACCESS_TOKEN="1/jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj" # (BufferApp OAuth Access Token)
export BUFFER_PROFILE_ID="0"                                    # (default of 0)

If you wish to post to multiple ids from the commandline, BUFFER_PROFILE_ID accepts a comma delimited array of integers, ie BUFFER_PROFILE_ID="0,1". This will post to both 0 and 1 index in your profiles list.

Access Token Instructions

How to Get Started:

  • Create a Developer API Token here: http://bufferapp.com/developers/apps/create.
  • Fill in Stuff. Your answers don't matter much for the purpose of this rudimentary setup.
  • Submit that form and wait a short period (~2 min )
  • Visit: http://bufferapp.com/developers/apps
  • Gather Access Token and place it after the word "access_token"
  • Set BUFFER_PROFILE_ID="0" if you only have one account to post to. Otherwise it's more complicated ;).

Example

The example below will use your Buffer account and schedule an update to be posted on your connected profiles with the specified IDs.

client = Buffer::Client.new(ACCESS_TOKEN)
client.create_update(
  body: {
    text:
      "Today's artist spotlight is on #{artist_name}.
      Check out the track, #{track_title}.",
    profile_ids: [
      '...',
      '...',
    ]
  },
)

TODO:

  • Improve instructions

Future versions will integrate with Buffer-OAuth system.

  • Integrate Launchy for the purpose of launching browser window.
  • Possible to model behavior on t.gem

Raise error if message is beyond the character limit.

API Coverage

Implemented

  • User
  • Profiles (:get, :post)
  • Updates (:get, :post)
  • Links
  • Info
  • Error Codes

Further Details API Coverage

Not Implemented

  • Caching

Supported Ruby Implementations

  • MRI 2.0.0
  • Others likely work but are not included in CI Server

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Issues, refactoring, and feedback are all welcome.

Also, this project is newcomer friendly!! We'd love to be your first Open Source Software contribution and would be happy to assist in that process.

Crafted with care by Zander. Reach out and say hi at @_ZPH or civet.ws

More Resources
to explore the angular.

mail [email protected] to add your project or resources here 🔥.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory