Find Jobs
Hire Freelancers

Remote signup API form creation (only 3 fields)

$30-100 USD

In Progress
Posted over 16 years ago

$30-100 USD

Paid on delivery
I need a simple three field form created on the home page for a newsletter signup. It is for [login to view URL] 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 = [login to view URL]() '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 = [login to view URL]("MSXML2.ServerXMLHTTP") [login to view URL] "POST","[login to view URL]:RemoteSignup",false [login to view URL] "Content-Type", "application/x-www-form-urlencoded" [login to view URL] DataToSend [login to view URL] = "text/xml" stringResult = [login to view URL] ' This is where you get the return value for evaluation Set xmlhttp = nothing ASP.NET w/ HTTPWebRequest and HTTPWebResponse in C# string stringPost = [login to view URL](); // 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)[login to view URL]("[login to view URL]:RemoteSignup"); [login to view URL] = "POST"; [login to view URL] = [login to view URL]; [login to view URL] = "application/x-www-form-urlencoded"; StreamWriter streamWriter = null; streamWriter = new StreamWriter([login to view URL]()); [login to view URL](stringPost); [login to view URL](); HttpWebResponse httpWebResponse = (HttpWebResponse)[login to view URL](); using (StreamReader streamReader = new StreamReader([login to view URL]())) { stringResult = [login to view URL](); // This is where you get the return value for evaluation [login to view URL](); } 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("[login to view URL]: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,"[login to view URL]: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="[login to view URL]: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>
Project ID: 174057

About the project

7 proposals
Remote project
Active 17 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of UNITED STATES
Vista, United States
5.0
82
Payment method verified
Member since Nov 7, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.