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

Computercraft Twitter [in Dev]

Started by deleted, 10 November 2013 - 07:18 PM
deleted #1
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
amtra5 #2
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
nolongerexistant #3
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 Token

Edit:

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
theoriginalbit #4
Posted 11 November 2013 - 06:22 AM
I find it funny that in your screenshot it says "Remember the '@'" and you still forget it…….
amtra5 #5
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 Token

Edit:

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.
nolongerexistant #6
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 Token

Edit:

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:
deleted #7
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 Token

Edit:

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
TheOddByte #8
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/>
deleted #9
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 :/
distantcam #10
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.
Shazz #11
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