Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gyazo/api-client-sample
Gyazo API client sample application
https://github.com/gyazo/api-client-sample
Last synced: 15 days ago
JSON representation
Gyazo API client sample application
- Host: GitHub
- URL: https://github.com/gyazo/api-client-sample
- Owner: gyazo
- Archived: true
- Created: 2015-04-17T03:26:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-17T03:41:43.000Z (over 9 years ago)
- Last Synced: 2024-07-03T09:21:24.335Z (4 months ago)
- Language: Ruby
- Size: 102 KB
- Stars: 5
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gyazo API Client
This app is an example of GyazoAPI client using [doorkeeper-sinatra-client](https://github.com/applicake/doorkeeper-sinatra-client)
[demo](https://api-client-sample.herokuapp.com/).## About Gyazo API
[resister & docs](https://gyazo.com/api),
## Installation
First clone the [repository from GitHub](https://github.com/gyazo/api-client-sample):
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