My code works for me.
Regards.
My code works for me.
Regards.
I used what you put above and nothing happens, i just need to get unpaid ETH, can you help
Do you change the YOUR_API_KEY_HERE and the number for farmers/workers with yours ? What is the answer of the API ($res) ?
To have a YOUR_API_KEY_HERE you must create an API application in your settings.
Regards,
you have lines commented out, is that correct?, like
// CURLOPT_CUSTOMREQUEST => “PATCH”,
//$farms = $res[‘data’];
//print_r(json_encode($data));
I get { “message”: “Not Found”, “code”: 404 }
I think you may have a bad url or a bad API_KEY.
Could you please tell me where can I find the security code?
First of all, my 2FA is turned off but my webpage response is that a security code is required, when I introduce one in the headers as you did here, it says it is wrong. Where is the correct one?
I have also used my token from account settings with my credentials.
I’ve been attempting to log in with my api authorization key. But it doesn’t appear to be allowing me access? Is there more steps then ensuring Authorization: is in the header of the api call? Very new to api’s I apologize if this is a stupid question, attempting to teach myself.
I am doing this fine in node red - make sure you have the word bearer in the authorization area - it seems lots of people keep missing this
what i did
curl -s -w ‘\n%{http_code}’ -H ‘Content-Type: application/json’ -H ‘Authorization: Bearer YOUR_API_KEY_HERE’ https://api2.hiveos.farm/api/v2/farms/YOUR_FARM_ID_HERE
Craig
Зачем изменили страницу входа в ферму? Теперь она то и дело вываливается в logoff, на страницу авторизации(!), при этом при вводе логин - пароль(!), получаешь сообщение, что вас долго не было и снова показывает туже страницу авторизации(!). Приходится второй раз вводить логин и пароль, ну и код 2FA.
Это очень раздражает!
а API всё? Сломали с концами? Ничего не работает неделю
@hiveon, @keaton_hiveon, the API has not been working for several days, for any request I get a response “Unauthorized”. Even a page https://api2.hiveos.farm/api/v2/ is not working
I built an electron application to reset my rigs via smart plugs, notice that a rig was offline this morning, checking the electron app, it was throwing a bunch of 405 errors.
I generated a new api, didn’t work. Check my ip was on the white list, everything seem to checkout.
So I look through the electron app and wondered if I turned off websecurity
webSecurity: false,
The app suddenly started receiving data from the api again. I’m not too sure what the security implications are, but for now it seems to be the only way electrons app work with the api
Can someone give me a basic example either in php or python, preferably python how to check and see which workers are offline in my farm? I have no idea how to do this. I’ve generated a API Key, and I know my farm ID I just don’t know what code to write so if someone could provide me with a snippet that I could run that would be great!
Эндпойнт /auth/check - не работает корректно.
При любом токене (не важно корректный или нет) выдает
{"code":null,"message":"Application outdated"}
и возвращает код 410
为什么我充值了钱还没到账户啊
交易所地址充值的啊
same error
Like very one else here - I have not been able to login to the API. Using a personal access token ( generated in the UI). yes I have set the Bearer Token with the Token that I generated. I get re direct from cloudflare
{“code”:null,“message”:“Unauthorized”,“redirect”:"/api/oauth/authorize?state=0dfd66e3-b4e9-4278-8798-8bb31"}
I’ve tried to allow curl to follow redirects to no avail.
Is there anyone that can post an up to date bash script / curl command that can login?
Thanks,
M