Jump to content

WHMCS API - addticketreply


jfreak53

Recommended Posts

I have tried everything I can think of and can't get line breaks to go along with the addticketreply command to the API. It's coming from a window's application not PHP or anything. Simple query string, all characters are included before the first line break. After that line break nothing else of the message is included.

 

I've tried a urlencode method, no go, the API just inserts all text including the encoded part ha ha. I've tried replacing line breaks '\n' with '<br>' but still WHMCS just shows the '<br>' ha ha

 

Any clues how to get full messages through the API including new lines? Documentation is really lacking on this one :(

 

Also the variable adminusername doesn't work at all! I've tried a full name, nope, I've tried username and userid and nope, still inserts my logged in username for ticket replies. The user I am using is a super admin with full access.

 

The query string for the API looks like this:

 

accesskey=key&adminusername=Name of Person&ticketid=488&message=asdf asdf
Nothing past that first line goes 
sad sad sad&action=addticketreply&responsetype=json&username=admin&password=mypassword

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated