Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2005
    Posts
    50

    Default addforward aPI1 bad args in documentation

    Hi,
    I was struggling to make email addforward work with API1 and API2 without any sucess, after reading documentation and forum posts.
    I´ve managed to make it work with API1 but found that the documentation is wrong.
    Here ApiEmail < ApiDocs < TWiki

    says the args are domain, email, fwemail, pipefwd
    But although the return is ever 1(bug ??), it wasn´t creating it in cpanel.

    I´ve managed to make it work with

    Code:
    $args=array(
        $email_account,
        "test@yahoo.com",
        $email_domain    
            
    );
    $result=$xmlapi->api1_query($account, "Email", "addforward",$args);
    var_dump($result);
    So, my question is...Will it be broken in future or is it the documentation that has it wrong ?

    Thanks

  2. #2
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    I apologize for the inconvenience. This function is not broken - rather the API docs were incorrect.

    ApiEmail < ApiDocs < TWiki

    What was needed was having "fwdopt=fwdemail" in the API call. The documentation has been adjusted, my apologies.
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  3. #3
    Member
    Join Date
    Apr 2005
    Posts
    50

    Default

    Thanks,
    glad to help

Similar Threads & Tags
Similar threads

  1. addpop, addforward fails
    By steelaz in forum cPanel Developers
    Replies: 3
    Last Post: 08-06-2009, 11:54 AM
  2. API1 doc?
    By takabanana in forum cPanel Developers
    Replies: 1
    Last Post: 05-20-2009, 04:23 PM
  3. Use API1 and API2
    By rongup in forum cPanel and WHM Discussions
    Replies: 38
    Last Post: 02-04-2009, 10:16 AM
  4. x-source, -args, and -dir blank on spam
    By erinspice in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-12-2007, 10:46 AM
  5. wrong fs type, bad option, bad superblock
    By katmai in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-05-2007, 01:40 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube