#Error : "Invalid API member or option"
This worked before.. :/
Pastebin API : http://pastebin.com/api
Im not sure why it seems to error, all though I think its the username,password.
local API = 'http://www.pastebin.com/api/api_post.php'
local Paste_Option = 'paste'
local User_Key = '' -- removed key
local Private_Paste = 0
local Paste_Name = Actinium.Services.UrlEncode({"Actinium-Rankedlist"})
local ExpireDate = "N"
local Paste_Format = "lua"
local Coding = 'wut'
local Login_Name = "jillmiles1"
local Login_Password = "removed password"
for i,v in next,Actinium.Ranked do
for _,plr in next,game:service'Players':GetPlayers() do
if v.Name:lower() == plr.Name:lower() then
Coding = Actinium.Services.UrlEncode({
Name=plr.Name,
Desc=v.Desc or 'Auto ranked',
Rank=v.Rank or 0,
Color=v.Color or 'New Yeller',
Notifcations=true
})
end
end
end
local Result = Actinium.Services.Post(
API,
"api_option="..Paste_Option.."&api_user_key="
..User_Key.."&api_user_name="
..Login_Name.."&api_user_password="
..Login_Password.."&api_paste_private="
..Private_Paste.."&api_paste_name="
..Paste_Name.."&api_paste_expire_date="
..ExpireDate.."&api_paste_format="
..Paste_Format.."&api_dev_key="
..User_Key.."&api_paste_code="..Coding,
Enum.HttpContentType.ApplicationUrlEncoded
)
repeat wait(.3)
until Result
print(tostring(Result))
print'Posted ranks!'

1 comment
Errors? Please see: https://scriptinghelpers.org/help/how-post-good-questions-answers