Jump to content




Computercraft Twitter [in Dev]

computer networking utility

  • This topic is locked This topic is locked
10 replies to this topic

#1 deleted

  • Members
  • 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


Posted Image

Posted Image
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 by EthanAG, 10 November 2013 - 08:20 PM.


#2 amtra5

  • Members
  • 166 posts
  • LocationMelbourne, 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

#3 nolongerexistant

  • Validating
  • 201 posts
  • LocationNetherlands

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 by Snakybo, 11 November 2013 - 04:55 AM.


#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 11 November 2013 - 06:22 AM

View PostEthanAG, on 10 November 2013 - 08:18 PM, said:


Posted Image
I find it funny that in your screenshot it says "Remember the '@'" and you still forget it.......

#5 amtra5

  • Members
  • 166 posts
  • LocationMelbourne, Australia

Posted 11 November 2013 - 06:32 AM

View PostSnakybo, on 11 November 2013 - 04:52 AM, said:

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.

#6 nolongerexistant

  • Validating
  • 201 posts
  • LocationNetherlands

Posted 11 November 2013 - 10:14 AM

View Postamtra5, on 11 November 2013 - 06:32 AM, said:

View PostSnakybo, on 11 November 2013 - 04:52 AM, said:

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

Quote

Based off of this: http://pastebin.com/n4h1jugY comes this:


#7 deleted

  • Members
  • 82 posts

Posted 11 November 2013 - 02:13 PM

View Posttheoriginalbit, on 11 November 2013 - 06:22 AM, said:

View PostEthanAG, on 10 November 2013 - 08:18 PM, said:

Posted Image
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

View PostSnakybo, on 11 November 2013 - 04:52 AM, said:

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

#8 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

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

#9 deleted

  • Members
  • 82 posts

Posted 11 November 2013 - 07:36 PM

View PostHellkid98, on 11 November 2013 - 05:38 PM, said:

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 :/

#10 distantcam

  • Members
  • 139 posts
  • LocationChunk 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.

#11 Shazz

  • Members
  • 175 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 by Shazz, 12 November 2013 - 07:26 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users