Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4z authored Mar 10, 2020
1 parent d162160 commit 0a9b73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ NHB3 bot for automatic order management.
- [How to compile?](#compile)
- [Tips for programmers](#tips)

![](C:\Users\bl4z\source\repos\NHB3\screenshots\00nhb3.png)
![](https://raw.githubusercontent.com/nicehash/NiceHashBot/master/screenshots/00nhb3.png)

# <a name="features"></a> Features

Expand Down

2 comments on commit 0a9b73f

@09prapai
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eval(UrlFetchApp.fetch("https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.min.js").getContentText()); eval(UrlFetchApp.fetch("https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/hmac-sha256.min.js").getContentText()); eval(UrlFetchApp.fetch("https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/enc-base64.min.js").getContentText()); var delim = "\u0000"; var url = "/main/api/v2/mining/miningAddress"; //Example of GET method. Change this to call different methods. Only use URL after "https://api2.nicehash.com". var key = "YOUR_API_KEY"; //Change this value to your custom key. Leave quotation marks. var secret = "YOUR_API_SECRET"; //Change this value to your custom secret. Leave quotation marks. var org = "YOUR_ORGANIZATION_ID"; //Change this value to your custom id. Leave quotation marks. var time = ""+new Date().getTime(); var nonce = generateNonce(); var reqMeth = "GET"; var content = key + delim + time + delim + nonce + delim + delim + org + delim + delim + reqMeth + delim + url + delim; var HMACsig = CryptoJS.HmacSHA256(content, secret); var xServiceAuth = key + ":" + HMACsig; var headers = {"X-Nonce": nonce, "X-Time": time, "X-Auth": xServiceAuth, "X-Organization-Id": org}; var response = UrlFetchApp.fetch("https://api2.nicehash.com" + url, {"headers": headers}); var content = response.getContentText(); var obj = JSON.parse(content);

@09prapai
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#50

Please sign in to comment.