0.0
No commit activity in last 3 years
No release in over 3 years
A gem to access the Picturelife API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

Runtime

>= 0
>= 0
 Project Readme

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)