The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Deleting an email forwarder API issues

Discussion in 'cPanel Developers' started by seengee, May 14, 2010.

  1. seengee

    seengee Member

    Joined:
    May 14, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi all,

    I'm having issues deleting an email forwarder using the JSON API. Using this string doesn't work:

    If i switch to XML like this then it works:


    Thanks.
     
    #1 seengee, May 14, 2010
    Last edited: May 14, 2010
  2. seengee

    seengee Member

    Joined:
    May 14, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    ha! fixed it - API1 doesn't expect a named parameter.

    changed this:

    to this:

     
  3. seengee

    seengee Member

    Joined:
    May 14, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    There is still an issue though, the json string returned by the API in this case is invalid, when decoding with the PHP function json_decode() it returns NULL. This is because the delforward function is not properly enclosed and there are brace issues around result and event also

     
    #3 seengee, May 14, 2010
    Last edited: May 14, 2010
Loading...

Share This Page