This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
davidgumazon's profile picture

Pastebin Login User Key and Login as Google Account?

Started by davidgumazon, 26 May 2015 - 06:51 AM
davidgumazon #1
Posted 26 May 2015 - 08: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
MKlegoman357 #2
Posted 26 May 2015 - 04:59 PM
You have to separate each parameter with a &amp;:


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.
Cranium #3
Posted 26 May 2015 - 06:34 PM
Take a look at how the default pastebin program uses the API, and try to build from there.
davidgumazon #4
Posted 27 May 2015 - 07:32 AM
You have to separate each parameter with a &amp;:


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 &amp; 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
___________________________________________________________
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 on 27 May 2015 - 08:11 AM