No commit activity in last 3 years
No release in over 3 years
Wrapper the Kuaishou Marketing Oauth2 API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Gem Version Build Status

Omniauth Ekuaishou

This is the official OmniAuth strategy for authenticating to Kuaishou Marketing. To use it, you'll need to sign up for an OAuth2 Application ID and Secret on the Kuaishou Marketing Applications Page.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-ekuaishou'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install omniauth-ekuaishou

Usage

OmniAuth::Strategies::Ekuaishou is simply a Rack middleware. Read the OmniAuth docs for detailed instructions: https://github.com/intridea/omniauth.

Here's a quick example, adding the middleware to a Rails app in config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :ekuaishou, ENV['EKUAISHOU_APP_ID'], ENV['EKUAISHOU_APP_SECRET']
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jinhucheung/omniauth-ekuaishou.

License

The gem is available as open source under the terms of the MIT License.