Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Manasa 80 posts 201 karma points
    Nov 19, 2014 @ 13:43
    Manasa
    0

    Submitting entries and saving in wufoo.

    Hi All,

    We created a contact form in MVC pattern. On submit after the user enters all the required fields, the data entries should bemade to wufoo and should be saved in wufoo. As I referred it we have to use REST for this. Any idea to proceed?

     

    Thanks,

    Manasa

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 19, 2014 @ 23:05
    Jan Skovgaard
    100

    Hi Manasa

    You should be able to use the Wufoo API I believe.

    You can read more about it here http://help.wufoo.com/articles/en_US/SurveyMonkeyArticleType/The-Entries-POST-API

    I hope this helps.

    /Jan

  • Manasa 80 posts 201 karma points
    Nov 20, 2014 @ 10:32
    Manasa
    0

    Thanks Jan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 20, 2014 @ 10:46
    Jan Skovgaard
    0

    Hi Manasa

    You're welcome :) If the reply solved your issue then please mark it as solved so others can go straight to the solution if they face the same challenge.

    Happy coding.

    /Jan

  • Arun P K 11 posts 72 karma points
    Nov 20, 2014 @ 18:29
    Arun P K
    1

    Hi,

    Use the following code snippet to work around with wufoo form API with umbraco in your controller 

    string url = "https://cssoft.wufoo.com/api/v3/forms/registration-form/entries.json"; // Add your url
    string APIKey = "3QNW-MXE2-O74M-RUC6"; // Add your API Key
    string Hashcode = "mfs802r0uokbfd"; // Add your form Hashcode
    string usernamePassword = APIKey + ":" + Hashcode;
    
    // Prepare web request...
    HttpWebRequest myReq =
         (HttpWebRequest)WebRequest.Create(url);
    CredentialCache mycache = new CredentialCache();
    mycache.Add(new Uri(url), "Basic", new NetworkCredential(APIKey, Hashcode));
    myReq.Credentials = mycache;
    myReq.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(new ASCIIEncoding().GetBytes(usernamePassword)));
    
    ASCIIEncoding encoding = new ASCIIEncoding();
    string postData = "Field1=Anshuman&Field3=3216549870&[email protected]"; // Add your Fields here
    byte[] data = encoding.GetBytes(postData);
    
    
    myReq.Method = "POST";
    myReq.ContentType = "application/x-www-form-urlencoded";
    myReq.ContentLength = data.Length;
    Stream newStream = myReq.GetRequestStream();
    
    // Send the data.
    newStream.Write(data, 0, data.Length);
    newStream.Close();
Please Sign in or register to post replies

Write your reply to:

Draft