Skip to content

Instantly share code, notes, and snippets.

@liangzan
Created July 13, 2012 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liangzan/3107740 to your computer and use it in GitHub Desktop.
Save liangzan/3107740 to your computer and use it in GitHub Desktop.
require 'oauth'
require 'httparty'
require 'etsy'
url = "http://openapi.etsy.com/v2/users/__SELF__"
access_token = "ae84c7ab4ad4b970b1c7ec9ae13fe5"
access_secret = "54116787c5"
etsy_api_key = "akymywrst9yajht2a81756vd"
etsy_shared_secret = "fmj4dgt1lw"
user_id = "18053491"
Etsy.environment = :production
Etsy.api_key = etsy_api_key
Etsy.api_secret = etsy_shared_secret
access = {access_token: access_token, access_secret: access_secret, fields: ["primary_email"]}
p Etsy::Request.get("/users/#{user_id}", access).to_hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment