Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
57020331
Topic
676942
Board
Mining (Altcoins)
Re: [Awesome Miner] - Powerful Windows GUI to manage and monitor up to 200000 miners
by
patrike
on
16/05/2021, 07:31:31 UTC
Quote from: Pukerud on May 14, 2021, 09:25:54 AM
Hi.
I am trying to use API to stop and start miners, I am really new to this.
Trying to use curl like this:
curl.exe
http://XXXX:17790/api/miners/28?action=stop
But when I do that I only get the summary response from the miner. What am I doing wrong here ?
Any help would be appreciated.
### Update - I ended up using powershell instead, line like this:
Invoke-RestMethod -Method 'Post' -Uri
http://xxxxx:17790/api/miners/28?action=start
Hi,
All API actions like stopping a miner must use a HTTP Post-request, like you did with Powershell. For CURL it must be specified with "-X POST" to make it work.