在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:iUnstable0/HttpProxyService开源软件地址:https://github.com/iUnstable0/HttpProxyService开源编程语言:JavaScript 72.9%开源软件介绍:HttpProxyServiceEasily Send HTTP Requests to Roblox API/Discord Webhooks SetupYou will need a Heroku and GitHub account. Create a Heroku account here (https://signup.heroku.com) Login here (https://id.heroku.com/login) if you already have a Heroku account Create a Github account here (https://github.com/signup?user_email=&source=form-home-signup) Login here (https://github.com/login) if you already have a GitHub account
Environment Variables Setup
Notes: Your user name cannot be
Notes: You need to put your full cookie including the _|WARNING
Notes: Your password must contain only underscores, letters (a-z), and numbers to prevent problems.
Notes: Your Roblox cookie resets every time you log in/out of your account. If you want to use your alt account cookie then open incognito mode and login into your alt account, get your cookie, and close the window so your cookie won't reset. Every time you update/add/delete a config var, you will have to deploy your app again for the changes to take effect EVEN if you have Automatic Deployment enabled. Game Setup
(Make sure there is no UsageHttpProxyService:FormatParamsParameters
Returns Example local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local FormattedData = HttpProxyService:FormatParams("https://catalog.roblox.com/v1/search/items/details", {
Category = 3,
Keyword = "Pants"
})
print(FormattedData) --> https://catalog.roblox.com/v1/search/items/details?Category=3&Keyword=Pants HttpProxyService:NewParameters
Returns HttpProxy Examples local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local HttpProxy = HttpProxyService:New(Password here) --Put your app password here
local Data = HttpProxy:GetAsync("https://www.roblox.com")
print(Data) HttpProxy:GetAsyncParameters
Returns Response Body Examples Search roblox catalog with the keyword local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local HttpProxy = HttpProxyService:New(Password here) --Put your app password here
local FormattedData = HttpProxyService:FormatParams("https://catalog.roblox.com/v1/search/items/details", {
Category = 3,
Keyword = "Pants"
})
local Data = HttpProxy:GetAsync(FormattedData)
for Index, Asset in pairs(Data.data) do
print(Asset.name)
end If you want to send a get request to Roblox APIs with user credentials, add a Get the friend count for local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local HttpProxy = HttpProxyService:New(Password here) --Put your app password here
local Data = HttpProxy:GetAsync("https://friends.roblox.com/v1/my/friends/count", true, {
currentuser = "User1" --Replace with the user you added in the config var (Case sensitive)
}) --> { count: number_of_friends }
print(Data.count) --> 4 (Number of friends request on the first user) Get the friend count for local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local HttpProxy = HttpProxyService:New(Password here) --Put your app password here
local Data = HttpProxy:GetAsync("https://friends.roblox.com/v1/my/friends/count", true, {
currentuser = "User2" --Replace with the user you added in the config var (Case sensitive)
}) --> { count: number_of_friends }
print(Data.count) --> 414 (Number of friends request on the second user) See https://friends.roblox.com/docs#!/Friends/get_v1_my_friends_count HttpProxyService:PostAsyncParameters
Returns Result Examples Send a local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local HttpProxy = HttpProxyService:New(Password here) --Put your app password here
HttpProxy:PostAsync("https://discord.com/api/webhooks/123456789012345678/83LgJzu7Qjmfyt1dunqEz651J1jh68kJijwkPaJuJnah7UjjekFgmRhti2_mLakIJneh", true, {
content = "Hello!"
}) If you want to send a post request to Roblox APIs with user credentials, add a Favorite the gear Body Swap Potion (https://www.roblox.com/catalog/78730532/Body-Swap-Potion) using local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local HttpProxy = HttpProxyService:New(Password here) --Put your app password here
HttpProxy:PostAsync("https://catalog.roblox.com/v1/favorites/users/USER_ID_HERE/assets/78730532/favorite", true, nil, {
currentuser = "User1" --Replace with the user you added in the config var (Case sensitive)
}) Favorite the gear Body Swap Potion (https://www.roblox.com/catalog/78730532/Body-Swap-Potion) using local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local HttpProxy = HttpProxyService:New(Password here) --Put your app password here
HttpProxy:PostAsync("https://catalog.roblox.com/v1/favorites/users/USER_ID_HERE/assets/78730532/favorite", true, nil, {
currentuser = "User2" --Replace with the user you added in the config var (Case sensitive)
}) Replace USER_ID_HERE with your roblox account user id, see https://users.roblox.com//docs#!/Users/get_v1_users_authenticated See https://catalog.roblox.com/docs#!/Favorites/post_v1_favorites_users_userId_assets_assetId_favorite HttpProxyService:PatchAsyncParameters
Returns Result Examples If you want to send a patch request to Roblox APIs with user credentials, add a Thumbs up the game Crossroads (https://www.roblox.com/games/1818/Classic-Crossroads) using local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local HttpProxy = HttpProxyService:New(Password here) --Put your app password here
local UniverseId = HttpProxy:GetAsync("https://games.roblox.com/v1/games/multiget-place-details?placeIds=1818", true, {
currentuser = "User1" --Replace with the user you added in the config var (Case sensitive)
})[1].universeId --Get the game universe ID
HttpProxy:PatchAsync("https://games.roblox.com/v1/games/" .. tostring(UniverseId) .. "/user-votes", true, {
vote = true
}, {
currentuser = "User1" --Replace with the user you added in the config var (Case sensitive)
}) --Thumbs up the game Thumbs up the game Crossroads (https://www.roblox.com/games/1818/Classic-Crossroads) using local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local HttpProxy = HttpProxyService:New(Password here) --Put your app password here
local UniverseId = HttpProxy:GetAsync("https://games.roblox.com/v1/games/multiget-place-details?placeIds=1818", true, {
currentuser = "User2" --Replace with the user you added in the config var (Case sensitive)
})[1].universeId --Get the game universe ID
HttpProxy:PatchAsync("https://games.roblox.com/v1/games/" .. tostring(UniverseId) .. "/user-votes", true, {
vote = true
}, {
currentuser = "User2" --Replace with the user you added in the config var (Case sensitive)
}) --Thumbs up the game For thumbs down, change See https://games.roblox.com//docs#!/Votes/patch_v1_games_universeId_user_votes HttpProxyService:DeleteAsyncParameters
Returns Response Body Examples If you want to send a delete request to Roblox APIs with user credentials, add a Unfavorite the gear Body Swap Potion (https://www.roblox.com/catalog/78730532/Body-Swap-Potion) using local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local HttpProxy = HttpProxyService:New(Password here) --Put your app password here
HttpProxy:DeleteAsync("https://catalog.roblox.com/v1/favorites/users/USER_ID_HERE/assets/78730532/favorite", true, {
currentuser = "User1"
}) Unfavorite the gear Body Swap Potion (https://www.roblox.com/catalog/78730532/Body-Swap-Potion) using local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))
local HttpProxy = HttpProxyService:New(Password here) --Put your app password here
HttpProxy:DeleteAsync("https://catalog.roblox.com/v1/favorites/users/USER_ID_HERE/assets/78730532/favorite", true, {
currentuser = "User2"
}) Replace USER_ID_HERE with your roblox account user id, see https://users.roblox.com//docs#!/Users/get_v1_users_authenticated See https://catalog.roblox.com/docs#!/Favorites/delete_v1_favorites_users_userId_assets_assetId_favorite UpdatingIf you installed using recommended method Open GitHub (https://github.com) Click on your repository If it says Tp update, click on After you fetched the latest version, click here (https://dashboard.heroku.com/apps) to go to your Heroku account dashboard Click on your app Click Scroll down and click Notes: You can enable automatic deployment so next time when you fetch the latest version on your repository, Heroku will re-deploy your app automatically (Meaning you do not need to re-deploy on your app dashboard) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论