Jump to content

API response please help

Recommended Posts


I'm improving the callback file, if possible, could you let me know hints on how to get the id from the response JSON. am able to get the Success using strpros in PHP but since the JSON is in a very different format am not able to understand it how to actually pull our the id from it. 

{"data": "Success \"c723d42a-c3ee-452c-940b-3d8e8b944868"}

I need this. c723d42a-c3ee-452c-940b-3d8e8b944868

I'm using WHMCS___ SMS gateway module for SMS. 


For Success; I'm doing this

if(strpos($response,'Success')) {


Edited by Waqas Saeed
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.

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