Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    51
    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:
    51
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice