From 25b7d2aab61ae6421398d3abae5da6ffe590333d Mon Sep 17 00:00:00 2001 From: s1n Date: Sat, 28 Mar 2020 10:36:41 -0700 Subject: 3/28/2020, 10:36 --- sample-remote-api-call.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 sample-remote-api-call.txt (limited to 'sample-remote-api-call.txt') diff --git a/sample-remote-api-call.txt b/sample-remote-api-call.txt new file mode 100644 index 0000000..b5605cb --- /dev/null +++ b/sample-remote-api-call.txt @@ -0,0 +1,48 @@ + $url, + 'keyword' => $keyword, + 'title' => $title, + 'format' => $format, + 'action' => 'shorturl', + 'username' => $username, + 'password' => $password + ) ); + +// Fetch and return content +$data = curl_exec($ch); +curl_close($ch); + +// Do something with the result. Here, we just echo it. +echo $data; + -- cgit v1.2.3