Open raamdev opened 9 years ago
The article only talks about PHP, it would be nice to know if other languages are supported in remote Operators. And maybe an example in another language other than PHP.
Other articles even linked in this one, talk about constance and globals in js, so it would be nice to have some additional information here
A few words about that, would have saved me the ticket.
@yaronelh Thanks for the feedback. I'm reopening this issue for further enhancements.
@jaswsinc You're welcome, and thank you for the answer you sent in the ticket. We are still working with that, trying to make it work for what we need. Cheers.
Work in progress for cURL equivalent for file_get_contents()
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://my-url.com/?s2member_pro_remote_op=1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => false,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => "content-type: application/x-www-form-urlencoded",
CURLOPT_POSTFIELDS => 's2member_pro_remote_op='.urlencode(serialize($op)),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Any example in .net core c# or postman? @raamdev @jaswrks
KB Article Creation Checklist
draft
and eitherquestions
ortutorials
draft
label, adddraft-finalized
label)draft-finalized
label, addpending
)pending
label, addpublished
label)Additional TODOs
Additional TODO list items go here.
:octocat: View Markdown File | :pencil2: Edit Markdown File :page_with_curl: Published KB Article: http://s2member.com/kb-article/pro-api-for-remote-operations/