Closed D3vil0p3r closed 2 years ago
from hackthebox import HTBClient
client = HTBClient(app_token='token')
Note this uses V2's 'app tokens', and NOT the 'api token' present in the V1 settings page.
from hackthebox import HTBClient client = HTBClient(app_token='token')
Note this uses V2's 'app tokens', and NOT the 'api token' present in the V1 settings page.
Thanks for the answer @clubby789 In the user settings there are to tokens
The Account Identifier that is written to be used for being identified by HTB public API and the second one App Token. So, you mean the V1 is the Account Identifier while the V2 is this App Token?
The account identifier is only used on the Discord server. The V1 API token is only available + useful on the V1 version of the site
The account identifier is only used on the Discord server. The V1 API token is only available + useful on the V1 version of the site
Ok. So I guess we must use App Tokens if we want to authenticate on HTBClient(app_token='token')
I see that currently, for authenticating it is required to add username and password (hardcoded).
Is it possible to add also authentication by providing the API key of the user?