Created
September 9, 2011 18:04
-
-
Save mimeoconnect/1206901 to your computer and use it in GitHub Desktop.
Doc APIs - Poster - Order Status (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
using System; | |
using System.Web.UI; | |
using System.Web.UI.WebControls; | |
using System.Web.UI.HtmlControls; | |
using System.Data; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
using System.Xml; | |
namespace Mimeo | |
{ | |
public class Poster | |
{ | |
public void OrderStatus() | |
{ | |
string userid = "[user id]"; | |
string userkey = "[user key]"; | |
string orderId = "[Order ID]"; | |
string format = "json"; | |
string environment = "Sandbox"; | |
System.Text.StringBuilder build_url = new System.Text.StringBuilder(); | |
//Sandbox Connection | |
build_url("https://developer.mimeo.com/api/poster/orderstatus"); | |
build_url("?userid="+userid); | |
build_url("&userkey="+userkey); | |
build_url("&orderId="+orderId); | |
build_url("&format="+format); | |
build_url("&environment="+environment); | |
string get_url = build_url(); | |
HttpWebRequest request = (HttpWebRequest) HttpWebRequest.Create (get_url); | |
request.Method = "GET"; | |
string new_product_template = ""; | |
using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) | |
{ | |
// Get the response stream | |
StreamReader reader = new StreamReader(response.GetResponseStream()); | |
// Console application output | |
response = reader.ReadToEnd(); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment