Created
September 9, 2011 07:18
-
-
Save mimeoconnect/1205661 to your computer and use it in GitHub Desktop.
Doc APIs - Poster - Proof (GET)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/http' | |
# Proof (GET) | |
userid = "[your user id]" | |
userkey = "[your user key]" | |
format = "JSON" | |
environment = "Sandbox" | |
mimeouser = "" | |
mimeopass = "" | |
url = 'https://developer.mimeo.com/proof/{proof id}?' | |
url = url + "userid=" + userid | |
url = url + "userkey=" + userkey | |
url = url + "format=" + format | |
url = url + "environment=" + environment | |
url = url + "mimeouser=" + mimeouser | |
url = url + "mimeopass=" + mimeopass} | |
resp = Net::HTTP.get_response(URI.parse(url)) | |
resp_text = resp.body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment