Project Detail

Remote signup API form creation (only 3 fields)  

Remote signup API form creation (only 3 fields) is project number 174057
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: HeoQue

Budget: $30-100

Created: 09/04/2007 at 12:24 EDT

Bid Count: 7

Average Bid:
N/A

09/19/2007 at 12:24 EDT

Project Creator: ejo14
Employer Rating: 9.96/109.96/109.96/109.96/109.96/109.96/109.96/109.96/109.96/109.96/10 (25 reviews)

Bid On This Project
 

Description

I need a simple three field form created on the home page for a newsletter signup.

It is for myemma.com and they provide us the remote access instructions below.

Emma's Remote Signup API logout
Emma offers a Web Service API that allows Emma customers with programming know-how to create a direct connection between a remote signup or entry form and their Emma audience.

They have offered us the following options for a Remote signup API:

Examples of the Remote Signup API
Code examples save a new user with the following information:
first name: Bob
email:
to the group:

references to "**username**" and "**password**" should be replaced with the Remote Signup username and password you were given.

ASP w/ ServerXMLHTTP in VBScript
string stringPost = Request.Form.ToString() 'remember a post is essentially a string delimited in a special way
stringPost = stringPost + "&username=**username**&password=**password**"
stringPost = stringPost + "&signup_post=24842&emma_account_id=14714"
stringPost = stringPost + "&group[]=1&emma_member_name_first=Bob&emma_member_email="
dim xmlhttp
set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "POST","https://app.e2ma.net/app/view:RemoteSignup",false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send DataToSend
Response.ContentType = "text/xml"
stringResult = xmlhttp.responsexml.xml ' This is where you get the return value for evaluation
Set xmlhttp = nothing



ASP.NET w/ HTTPWebRequest and HTTPWebResponse in C#
string stringPost = Request.Form.ToString(); // remember a post is essentially a string delimited in a special way
stringPost = stringPost + "&username=**username**&password=**password**";
stringPost = stringPost + "&signup_post=24842&emma_account_id=14714";
stringPost = stringPost + "&group[]=1&emma_member_name_first=Bob&emma_member_email=";
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("https://app.e2ma.net/app/view:RemoteSignup");
httpWebRequest.Method = "POST";
httpWebRequest.ContentLength = stringPost.Length;
httpWebRequest.ContentType = "application/x-www-form-urlencoded";
StreamWriter streamWriter = null;
streamWriter = new StreamWriter(httpWebRequest.GetRequestStream());
streamWriter.Write(stringPost);
streamWriter.Close();
HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream())) {
stringResult = streamReader.ReadToEnd(); // This is where you get the return value for evaluation
streamReader.Close();
}


PHP w/ PEAR's HTTP_Client package
require_once("HTTP/Client.php");
$emma_client = new HTTP_Client();
$emma_client->setMaxRedirects(20);

// POST should be filtered appropriately
$_POST['emma_account_id'] = '14714';
$_POST['signup_post'] = '24842';
$_POST['username'] = '**username**';
$_POST['password'] = '**password**';
$_POST['group'][] = 1
$_POST['emma_member_name_first'] = 'Bob';
$_POST['emma_member_email'] = '';

$emma_client->post("https://app.e2ma.net/app/view:RemoteSignup", $_POST);
$response_code = $emma_client->currentResponse();


PHP w/ cURL
$post = "signup_post=24842&emma_account_id=14714&username=**username**&password=**password**&group[]=1";
$post .= "&emma_member_email=&emma_member_name_first=Bob";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://app.e2ma.net/app/view:RemoteSignup");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$response_code = curl_exec ($ch);
curl_close ($ch);


ColdFusion MX
<CFHTTP url="https://app.e2ma.net/app/view:RemoteSignup" method="POST" throwonerror="yes">
<CFHTTPPARAM type="FORMFIELD" name="emma_account_id" value="14714">
<CFHTTPPARAM type="FORMFIELD" name="signup_post" value="24842">
<CFHTTPPARAM type="FORMFIELD" name="username" value="**username**">
<CFHTTPPARAM type="FORMFIELD" name="password" value="**password**">
<CFHTTPPARAM type="FORMFIELD" name="group[]" value="1">
<CFHTTPPARAM type="FORMFIELD" name="emma_member_name_first" value='Bob'>
<CFHTTPPARAM type="FORMFIELD" name="emma_member_email" value="">
</CFHTTP>
<CFSET ResponseCode = CFHTTP.fileContent>



Messages Posted:4 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids. You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


    Bid on this Project