iamlouisdoyle / PHP-Bittrex-API-Wrapper

Bittrex API wrapper written in PHP
MIT License
6 stars 3 forks source link

Automatically echoing functions #1

Open michaelsomerville opened 6 years ago

michaelsomerville commented 6 years ago

Hey! I might be having a brain fart here, but why the heck is the code auto echoing ?

$bittrex = new Bittrex(YOUR_API_KEY, YOUR_API_SECRET); $markets = $bittrex->GetMarkets();

I am trying to save it to a mysql, but the code keeps echoing to the dam page. lol thoughts ?

subikar commented 6 years ago

I am having the same issue. The output itself printing on the page instead to return to variable. Is there any one who can help quickly.

Thanks in advance for your help Subikar

florent8000 commented 6 years ago

same issue, has anyone found a solution?

forrust commented 6 years ago

Curl automatically prints output, add the following on line 35: curl_setopt($l_curl, CURLOPT_RETURNTRANSFER, TRUE);

before: $l_curlResult = curl_exec($l_curl);

to return it as an array.

florent8000 commented 6 years ago

Awesome thanks! On Wed, 10 Jan 2018 at 15:12, Maurice Aarts notifications@github.com wrote:

Curl automatically returns output, add the following on line 35: curl_setopt($l_curl, CURLOPT_RETURNTRANSFER, TRUE);

before: $l_curlResult = curl_exec($l_curl);

to return it as an array.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iamlouisdoyle/PHP-Bittrex-API-Wrapper/issues/1#issuecomment-356519030, or mute the thread https://github.com/notifications/unsubscribe-auth/Ahpdkn-P5F2JlsD2IxisIR5VRPfgpanRks5tJGLJgaJpZM4Q0JBy .