Skip to content

albertzak/picturelife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Picturelife

Installation

Add this line to your application's Gemfile:

gem 'picturelife'

And then execute:

$ bundle

Features

  • Resumable photo upload
  • Authentication via OAuth
  • Minimal dependencies
  • Ruby syntax

Usage

Setup

    require 'picturelife'

    Picturelife.client_id     = ENV['CLIENT_ID']
    Picturelife.client_secret = ENV['CLIENT_SECRET']

    Picturelife.redirect_uri  = 'http://localhost:3000/oauth'

Authorization

      <a href="<%= Picturelife.authorization_uri %>">Click here</a> to connect to Picturelife!</a>
    get '/oauth' do
      code = params['code']
      Picturelife.access_token_from_code = code
    end
    
    Picturelife::Medias.index(limit: 10)

About

Rubygem for Picturelife API. Supports resumable uploads.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages