N
N
Novomir Lobanov2015-04-23 20:09:28
RESTful API
Novomir Lobanov, 2015-04-23 20:09:28

How to reach e-autopay via GET?

I need to get order statuses from e-autopay, they don't have a good
example
.
Can you tell me what to fix / where to dig?
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => ' https://api.e-autopay.com/v01/numbers/orders/numbers? ',
CURLOPT_USERAGENT => 'Codular Sample cURL Request',
CURLOPT_POSTFIELDS = > array(
customer_api_key => 'numbers'
)
));
$resp = curl_exec($curl);
echo($resp);
curl_close($curl);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2017-03-22
@kalashnikofff

This is how it works

$url = 'url';
$curl = curl_init($url);
curl, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($curl);
curl_close($curl);
$json = json_decode($out,true);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question