Not signed in (Sign In)
The Intervals Forum is read-only
Please head to help.myintervals.com for help articles and guides. If you have any questions, please contact our support team.

API

How to modify whois contact details?

Bottom of Page

1 to 2 of 2

  1.  
    • jeybala
    • Mar 14th 2012 edited @ 03/14/2012 9:48 am
     

    function modify(.......)
    {
    $mcontact = file_get_contents( "https://test.httpapi.com/api/contacts/modify.json?auth-userid=$uid&auth-password=$pass&contact-id=$cid&name=$name &company=$company&email=$email&address-line-1=$street&city=$city&country=$country&zipcode=$pincode&phone-cc=$countryCodeList[$phc]&phone=$phone" );

    $mdetails = json_decode( $mcontact, true );

    return $mdetails;
    }



    function modify(.......)
    {
    $mcontact = file_get_contents( "https://test.httpapi.com/api/contacts/modify.json?auth-userid=$uid&auth-password=$pass&contact-id=$cid&name=$name &company=$company&email=$email&address-line-1=$street&city=$city&country=$country&zipcode=$pincode&phone-cc=$countryCodeList[$phc]&phone=$phone" );

    $mdetails = json_decode( $mcontact, true );

    return $mdetails;
    }

    using this modify function, displays warning mesage

    Warning: file_get_contents(https://...@hihfg.com&address-line-1=3,dfgdf,fgdf&city=dfgfd&country=India&zipcode=641005&phone-cc=91&phone=756657)
    [function.file-get-contents]: failed to open stream: HTTP request failed!
    HTTP/1.0 400 Bad request in /home/gfdgfd/public_html/new_one/customer/account/class.whois.php
    on line 49

    Please help me, modify contact details..

  1.  

    That URL you're using does not seem to correspond to the Intervals API. If you're using httpapi.com (which didn't seem to load for me) as a service to wrap your Intervals API requests, I'd have to see that code or the site to help you out.

    All changes (updates, creates) must be done in a RESTful manner using HTTP POST or PUT, which file_get_contents does not support. (You will likely have to use cURL in PHP). For more information on using the API, start here. For specific information on using the personcontact resource, read this.

Comments are closed.
For more Intervals help documentation, please visit help.myintervals.com