Find Jobs
Hire Freelancers

Remote signup API form creation (only 3 fields)

$30-100 USD

Em Andamento
Publicado há mais de 16 anos

$30-100 USD

Pago na entrega
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>
ID do Projeto: 174057

Sobre o projeto

7 propostas
Projeto remoto
Ativo há 17 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos

Sobre o cliente

Bandeira do(a) UNITED STATES
Vista, United States
5,0
82
Método de pagamento verificado
Membro desde nov. 7, 2006

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.