Jump to content

Backpack.tf Auxillary API help

Recommended Posts

Shock95    0

I use the backpack.tf Auxillary API to send a heartbeat every five minutes to show a lightning bolt symbol for my trade bot, however whenever I do this it leads me to getting IP banned a few minutes later for no reason and this error message pops up from the Node.js bot:

"Client network socket disconnected before secure TLS connection was established"

Below is the code I am using for the heartbeat


let lightning_timer = null;

let request_params = {
        uri: "https://backpack.tf/api/aux/heartbeat/v1?token=" + keys.BACKPACK_TF_TOKEN,
        form: {
            token: keys.BACKPACK_TF_TOKEN,
            automatic: "all"
        json: true,
        method: "POST"

    request(request_params, function(error, response, body) {
        if(error) {
            console.log(error + error.message);
        } else {
            if(lightning_timer == null) {
                console.log("Successfully connected to Backpack.tf");
            lightning_timer = setInterval(lightning, 60000 * 5);


Share this post

Link to post
Share on other sites
Shock95    0
9 hours ago, Daddy Alex said:

Maybe it was replaced by /1.0/agent/pulse ?


I tried using that API with OAuth however it didn't do anything.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.