82 posts
Posted 10 November 2013 - 08:18 PM
Based off of this: http://pastebin.com/n4h1jugY comes this:Computercraft Twitter (In Development)Testing:pastebin get MXsivF CCTwitter
You see… I need a little help… i need to know the http address for loging in like this where you do the .. .. stuff ex:
Credits to LabyStudio
print("")
name = read()
print("")
password = read()
testfor = http.get("http://login.minecraft.net/?user=" ..name.. "&password=" ..password.. "&version=12") -- check login data printresult = testfor.readAll()
if printresult == "Bad login" then
print("Bad login")
else print("Welcome")
end
Thats all
Edited on 10 November 2013 - 07:20 PM
321 posts
Location
Melbourne, Australia
Posted 11 November 2013 - 03:43 AM
I would not recommend using minecraft authentication for logging in. But if you would still like to use this, please, localise your variables, or another program may be able to steal auth information
160 posts
Location
Netherlands
Posted 11 November 2013 - 04:52 AM
If you want to be able to connect to Twitter and/or read/post tweets you're going to need an
Twitter Access TokenEdit:
Wait, what is is exactly you're trying to do? Use Twitter via CC or create a Twitter-clone within CC?
Edited on 11 November 2013 - 03:55 AM
7508 posts
Location
Australia
Posted 11 November 2013 - 06:22 AM
I find it funny that in your screenshot it says "Remember the '@'" and you still forget it…….
321 posts
Location
Melbourne, Australia
Posted 11 November 2013 - 06:32 AM
If you want to be able to connect to Twitter and/or read/post tweets you're going to need an
Twitter Access TokenEdit:
Wait, what is is exactly you're trying to do? Use Twitter via CC or create a Twitter-clone within CC?
Since CC currently only supports basic GET, POST & REQUEST functions, you would need to go through a hosted server-side script (eg. PHP) to access the real Twitter. So my guess is he is trying to make a twitter clone.
160 posts
Location
Netherlands
Posted 11 November 2013 - 10:14 AM
If you want to be able to connect to Twitter and/or read/post tweets you're going to need an
Twitter Access TokenEdit:
Wait, what is is exactly you're trying to do? Use Twitter via CC or create a Twitter-clone within CC?
Since CC currently only supports basic GET, POST & REQUEST functions, you would need to go through a hosted server-side script (eg. PHP) to access the real Twitter. So my guess is he is trying to make a twitter clone.
That's what I thought until I read the small print
Based off of this: http://pastebin.com/n4h1jugY comes this:
82 posts
Posted 11 November 2013 - 02:13 PM
I find it funny that in your screenshot it says "Remember the '@'" and you still forget it…….
…. Yeah always do that especially when i log into twittter
If you want to be able to connect to Twitter and/or read/post tweets you're going to need an
Twitter Access TokenEdit:
Wait, what is is exactly you're trying to do? Use Twitter via CC or create a Twitter-clone within CC?
1. Ok 2. Mostly making a clone
1852 posts
Location
Sweden
Posted 11 November 2013 - 05:38 PM
I just looked at the OP and.. Well why aren't you using locals?!? D:
Someone could easily just go into the Lua promp and do
print(name .. ":" .. password)
That is a huge problem when you want something secure for those who uses it..
And I feel like I've seen that login code to minecraft on
another topic :P/>
82 posts
Posted 11 November 2013 - 07:36 PM
I just looked at the OP and.. Well why aren't you using locals?!? D:
Someone could easily just go into the Lua promp and do
print(name .. ":" .. password)
That is a huge problem when you want something secure for those who uses it..
And I feel like I've seen that login code to minecraft on
another topic :P/>
No because idk the login code where it does this: ex dummy: "
minecraft.net/login/user?="..username.."password?="..passcode.."/"
becuase what is twitter this?:
https://twitter.com/login/user?="..username.."pass?="..password.."/"
Also i put who its from :/
125 posts
Location
Chunk 0
Posted 11 November 2013 - 10:08 PM
Twitter uses OAuth authentication so you can't use
https://twitter.com/login/user?="..username.."pass?="..password.."/"
ComputerCraft's HTTP API does not currently support the methods you need to use OAuth, so you won't be able to authenticate with Twitter.
You can display some information from public feeds, but that's it.
169 posts
Posted 12 November 2013 - 07:24 PM
You might be able to make a PHP script that does the OAuth and have your CC program interface with that.
But I doubt anyone will use it as you will have to pass the username and password to your PHP script so you could if you wanted, steal their passwords.
Edited on 12 November 2013 - 06:26 PM