simontor
Legacy Member
Hallo,
Ik heb een PHP script dat via cURL verbinding maakt met de Zoho API (Open Document).
Dan is de response in deze 'stijl':
Dat wordt dan bijvoorbeeld:
Nu probeer ik deze string op te splitsen in een array zodat ik url, warning en result apart kan gebruiken.
Ik heb al geprobeerd met regex_split() en explode() en het lukte niet om het deftig op te splitsen...
Kan iemand me helpen?
Groetn, Simon
Ik heb een PHP script dat via cURL verbinding maakt met de Zoho API (Open Document).
Dan is de response in deze 'stijl':
Code:
URL=[document url value]
WARNING=[warning message]
RESULT=[TRUE/FALSE]
Note: RESULT field indicates the status of the action. Zoho will return 'TRUE' if the request is posted successfully, else the
value is 'FALSE'.
Similarly, if any of the parameters are found to be incorrect, you will get a warning message stating the same otherwise
the value returned will be 'NULL'.
Code:
URL=https://show.zoho.com/remoteedit.sas?doc=zPPG0w707d7wax67020x68F
WARNING=NULL
RESULT=TRUE
Nu probeer ik deze string op te splitsen in een array zodat ik url, warning en result apart kan gebruiken.
Ik heb al geprobeerd met regex_split() en explode() en het lukte niet om het deftig op te splitsen...
Kan iemand me helpen?
Groetn, Simon
Als ik straks thuis ben zal ik eens iets proberen.