Skip to content

api login problem help me #3

Description

@rnpeh

my code

`<?php
$data = array(
"email" => "xxxxx@xxx.com",
"password" => "xxxxxx"
);
$data_json = json_encode($data);
$url = "https://api.minergate.com/1.0/auth/login";

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_POSTFIELDS, $data_json);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/json')
);
$result = curl_exec($curl);
curl_close($curl);
echo $result ;

?>
`
output data has been
{"code":"InternalError","message":"Cannot read property 'send' of undefined"}

help me plz...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions