Jump to content
McKay Development

community.httpRequestPost


Recommended Posts

so i have this code right there, it report for a specific game how can i do to report for "compromised account"

var options = {
                                    formData: {    sessionid: sessionID, json: 1, abuseID: config.id, eAbuseType: 10, abuseDescription: 'Cheating in the recent matches.', ingameAppID: config.appid },
                                    headers: { Cookie: cookies, Host: 'steamcommunity.com', Origin: 'https://steamcommunity.com' },
                                    json: true
                                };
                                            
                                    community.httpRequestPost(
                                        'https://steamcommunity.com/actions/ReportAbuse/', options,
                                        function (err, res, data) {
                                            if (err) {
                                                console.log('err', err); failed++; allFailed++;
                                            }
                                            if (!err) {
                                             if (data == 1) { console.log('[%s] Successfully reported with response code %s'.green, logOnOptions.accountName, data); success++; allSuccess++;}
                                             else if (data == 25) { console.log('[%s] Already reported. Response code %s'.red, logOnOptions.accountName, data); failed++; allFailed++; }
                                             else { console.log('[%s] something went wrong. Response code %s'.red, logOnOptions.accountName, data); failed++; allFailed++;}
                                            callback();
                                            }
                                        },
                                        "steamcommunity"
                                    );

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...