Jump to content

gettickets API


qutazs

Recommended Posts

Hello everyone,

 

I hope someone can help me out with a simple issue. I'm trying to make a website, build using simple PHP and the use of WHMCS API.

 

When I want to make the clientside, it needs to show tickets for the particular user, but the issue here is to get the info out of the array that is presented after running the API gettickets on the userid.

 

I get this:

Array ( [result] => success [totalresults] => 1 [startnumber] => 0 [numreturned] => 1 [tickets] => Array ( [ticket] => Array ( [0] => Array ( [id] => 7 [tid] => 782755 [deptid] => 1 [userid] => 39 [name] => Mark Lønquist => mark.loenquist@outlook.com [cc] => [c] => 79rzVBeJ [date] => 2013-04-25 16:14:24 [subject] => test [status] => Open [priority] => Medium [admin] => [attachment] => [lastreply] => 2013-04-25 16:14:24 [flag] => 0 [service] => ) ) ) )

 

 

I want to get the "tid" among other info for each ticket associated with the clientid, but no mather what I try to do nothing pops out :(

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