PHP Classes

how to use CallAPI to post xml string to URL

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  how to use CallAPI to post xml...  >  (Un) Subscribe thread alerts  
Subject:how to use CallAPI to post xml...
Summary:can you provide me a code snippet
Messages:2
Author:Allen Wayne
Date:2015-04-28 16:18:45
 

 


  1. how to use CallAPI to post xml...   Reply   Report abuse  
Picture of Allen Wayne Allen Wayne - 2015-04-28 16:18:45
let's say i wannt POST $xmlStr to $URL, 2 legged,

<?php
$success = $client->CallAPI($URL, 'POST', array(
'format'=>'text/xml','File'=>$xmlStr), array('FailOnAccessError'=>true,'2Legged'=>true), $response);

echo $response
?>

it said syntax error! please help me. thanks.


  2. Re: how to use CallAPI to post xml...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-04-29 01:00:09 - In reply to message 1 from Allen Wayne
Where the syntax error is pointing? That code does not have syntax errors?