Skip to content

wildjcrt/pixnet_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixnet API

This is a Ruby version library for Pixnet API, which use OAuth 1.0a.

You can go to PIXNET API developers / MURMUR API developers to look for more documents.

Install

Put this line in your Gemfile:

gem "pixnet_api"

Then bundle:

% bundle

OR if you want to install plugin, your project need some gems:

gem "oauth"
gem "json"
gem "multipart-post"

To install plugin, you can

$ rails plugin install [email protected]:wildjcrt/pixnet_api.git

General configuration options

First, Run the following generator command, then edit the generated file.

% rails g pixnet_api:install

Go to PIXNET API developers to register your app.

Finally, open config/initializers/oauth_pixnet.rb, and fill-up CONSUMER_KEY and ACCESS_TOKEN.

Usage

First, You need to create a variable for any method you want to call.

@pixnet_oauth = PixnetApi::PixnetOauth.new

Then you can call method like:

@pixnet_oauth.get_album_sets

OR

@pixnet_oauth.get_album_element your_element_id

Enjoy!

About

Ruby version library for Pixnet API, which use OAuth 1.0a.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages