Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

gyazo/api-client-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gyazo API Client

This app is an example of GyazoAPI client using doorkeeper-sinatra-client demo.

About Gyazo API

resister & docs,

Installation

First clone the repository from GitHub:

git clone git://github.com/gyazo/api-client-sample.git

Install all dependencies with:

bundle install

Environment variables

You need to setup few environment variables in order to make the client work. You can either set the variables in you environment:

export OAUTH2_CLIENT_ID           = "129477f..."
export OAUTH2_CLIENT_SECRET       = "c1eec90..."
export OAUTH2_CLIENT_REDIRECT_URI = "http://localhost:9393/callback"

or set them in a file named env.rb in the app's root. This file is loaded automatically by the app.

# env.rb
ENV['OAUTH2_CLIENT_ID']           = "129477f..."
ENV['OAUTH2_CLIENT_SECRET']       = "c1eec90..."
ENV['OAUTH2_CLIENT_REDIRECT_URI'] = "http://localhost:9393/callback"

Start the server

Fire up the server with:

rackup config.ru

About

Gyazo API client sample application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published