Jump to content




Pastebin Login User Key and Login as Google Account?


  • You cannot reply to this topic
3 replies to this topic

#1 davidgumazon

  • Members
  • 30 posts
  • LocationPhilippines

Posted 26 May 2015 - 07:51 AM

CC 1.73

i trying to decode pastebin's api system it gets me errors -_-

file source: http://pastebin.com/UHvi7TNH

function getUser(username,password)
write("Login to pastebin.com...")
local response=http.post(login,
api_dev_key..key.._n..
api_user_name..textutils.urlEncode(username).._n..
api_user_password..textutils.urlEncode(password))
if response then
  local sResponse=response.readAll() response.close()
  print("Success.")
  print("user key: "..sResponse)
  return response
else
  print("Failed.") print(sResponse) return false
end
end

"test" file to debug my api
os.loadAPI("papi")
print(papi.getUser(blablablabla,blablabal))

list usernames i test: red color is result
[email protected]<script cf-hash='f9e31' type="text/javascript"> /* */</script>
Error
davidgumazon03
Invalid Post Parameters

how can i Valid Post Parameters and Login as Google Account?
someone help me i'm confused i dont like to be alone in my SinglePlayer D: i'm making CC's IRC project

#2 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 26 May 2015 - 03:59 PM

You have to separate each parameter with a &:

http://example.com/?param1=value1&param2=value2

If you are going to use pastebin as a message-transfer API then it won't quite work as pastebin is not meant for that. It will probably stop responding after a few messages because it will think it's spam, which will be quite true when you think about it. If you're posting message then at least make them expire, so they won't be floating in pastebin forever.

#3 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 26 May 2015 - 05:34 PM

Take a look at how the default pastebin program uses the API, and try to build from there.

#4 davidgumazon

  • Members
  • 30 posts
  • LocationPhilippines

Posted 27 May 2015 - 06:32 AM

View PostMKlegoman357, on 26 May 2015 - 03:59 PM, said:

You have to separate each parameter with a &:

http://example.com/?param1=value1&param2=value2

If you are going to use pastebin as a message-transfer API then it won't quite work as pastebin is not meant for that. It will probably stop responding after a few messages because it will think it's spam, which will be quite true when you think about it. If you're posting message then at least make them expire, so they won't be floating in pastebin forever.
like this?
http://pastebin.com/api/api_post.php?param1=value&param2=value2
or
http://pastebin.com/api/api_post.php?i=param1=value&param2=value2
wat code ill use?
___________________________________________________________
and about my IRC for ComputerCraft:

Advertising IRC : is in Pastebin Site : 1 Server
  • is Added to Allow any User Advertise Before a User Entering to Chat Areas
  • There's No Cooldown Storage
  • 1 Hour Advertise Cooldown/Expiration
Global IRC : is in Another Site : 3 Servers (ChatArea,Blacklist,Whitelist)
  • Blacklist is in Pastebin Site and Whitelist & ChatArea is in Another Site
  • There's no Cooldown Storage
  • 5 Seconds Reply Cooldown
  • 30 Minutes Reply Expiration
Local IRC : is in Another Site : 2 Servers
  • Added Ban Player System is Blacklist and ur Current Blacklist in IRC is saved to ur ComputerStorage
  • is for User want to make own Private IRC or IRC's some players is entering ur own Chat Area
  • 3 Servers Created by User can't be Float in Another Site (3 Servers is 1 Day Expiration)
  • Making Own IRC and 3 Servers Created for Blacklist and Whitelist and Chat Area
  • Reply Cooldowns is same as Global IRC and No Cooldown Storage
  • Added Every Player is added to Whitelist to check user's INFO
  • 15 Minutes IRC Cooldown
  • 1 Day IRC Expiration
I Change Decision Private IRC to Advertising IRC
this is my flowchart outdated
http://linkshrink.net/7NO6PN
___________________________________________________________

View PostCranium, on 26 May 2015 - 05:34 PM, said:

Take a look at how the default pastebin program uses the API, and try to build from there.
but Another Pastebin's API ill used

Edited by davidgumazon, 27 May 2015 - 09:11 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users