Postwill alternatives and similar gems
Based on the "Social" category.
Alternatively, view postwill alternatives based on common mentions on social networks and blogs.
-
ActsAsTaggableOn
A tagging plugin for ActiveRecord that allows for custom tagging along dynamic contexts. -
PublicActivity
Provides easy activity tracking for your ActiveRecord, Mongoid 3 and MongoMapper models in Rails 3 and 4. Similar to Github's Public Activity. -
Merit
Adds reputation behavior to Rails apps in the form of Badges, Points, and Rankings for ActiveRecord or Mongoid. -
Acts As Commentable
Provides a single Comment model that can be attached to any model(s) within your app. -
Acts As Commentable with Threading
Similar to acts_as_commentable; however, utilizes awesome_nested_set to provide threaded comments.
Get performance insights in less than 4 minutes.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Postwill or a related project?
README
Postwill
Posting to the most popular social media
Installation
Add this line to your application's Gemfile:
gem 'postwill'
And then execute:
$ bundle
Or install it yourself as:
$ gem install postwill
Usage
List of available providers is here.
Single provider
postwill = Postwill::Client.new(
twitter: {
access_token: 'access_token',
access_token_secret: 'access_token_secret'
}
)
postwill.to(:twitter, text: 'text', image: 'image')
Success:
{
twitter: {
status: :ok,
response: {} # Hash of response data depends on provider
}
}
Failure:
{
twitter: {
status: :error,
response: '' # String error message
}
}
Application credentials
config/initializers/postwill.rb
Postwill::Settings.configure do |config|
config.providers.twitter = {
consumer_key: 'your_consumer_key',
consumer_secret: 'your_consumer_secret'
}
end
Multiple providers
postwill = Postwill::Client.new(
twitter: {
access_token: 'access_token',
access_token_secret: 'access_token_secret'
},
facebook: {
access_token: 'access_token'
}
)
postwill.to(%i[twitter facebook], text: 'text', image: 'image')
Result:
{
twitter: {
status: :ok,
response: {} # Response data
},
facebook: {
status: :ok,
response: {} # Response data
}
}
Application credentials(for providers which need them)
config/initializers/postwill.rb
Postwill::Settings.configure do |config|
config.providers.twitter = {
consumer_key: 'your_consumer_key',
consumer_secret: 'your_consumer_secret'
}
end
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/postwill/postwill.
License
The gem is available as open source under the terms of the MIT License.
*Note that all licence references and agreements mentioned in the Postwill README section above
are relevant to that project's source code only.