I've been looking for quite a while now, and I can't find anything related with Love2D using oAuth.
I'm basically looking for a way to post on Twitter by using Love2D.
Using Love2D to Post on Twitter?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Using Love2D to Post on Twitter?
You might find more stuff if you look for "oauth with Lua" instead of "oauth with Love2d". I just found this (I have not tried it):
https://github.com/ignacio/LuaOAuth
https://github.com/ignacio/LuaOAuth
When I write def I mean function.
Re: Using Love2D to Post on Twitter?
I've looked into that, but it said "module 'base64' not found"kikito wrote:You might find more stuff if you look for "oauth with Lua" instead of "oauth with Love2d". I just found this (I have not tried it):
https://github.com/ignacio/LuaOAuth
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Using Love2D to Post on Twitter?
Because it has dependencies that you need to manually put in place (you can use other mechanisms too though):
I'd also guess that some modifications will be in order to get this working with löve, but that's just my guess.
Code: Select all
dependencies = {
"lua >= 5.1",
"luasocket",
"luasec",
"luacrypto",
"lbase64"
}
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Using Love2D to Post on Twitter?
As far as I know, luasocket is already included in LÖVE. Luasec, luacrypto and lbase64 are not. If they are all pure-lua functions, you can probably add them to your project relatively easily. If they are binary libraries, then it will be significantly more difficult - using binary libs with LÖVE is kinda hard, especially if you want to support multiple platforms.
When I write def I mean function.
Re: Using Love2D to Post on Twitter?
Where would I find the ones that work and how would I modify them for löve?zorg wrote:Because it has dependencies that you need to manually put in place (you can use other mechanisms too though):I'd also guess that some modifications will be in order to get this working with löve, but that's just my guess.Code: Select all
dependencies = { "lua >= 5.1", "luasocket", "luasec", "luacrypto", "lbase64" }
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Using Love2D to Post on Twitter?
If you have to ask that question, then this task might be a bit too much for you right now. I recommend that you set it aside for now, try something simpler, and try it again in the future, when you have a firmer grasp of LÖVE and Lua.
When I write def I mean function.
Re: Using Love2D to Post on Twitter?
I guess it is, but I also thought it'd be as easy a doing it in Python. Anyway, thanks for trying to help.kikito wrote:If you have to ask that question, then this task might be a bit too much for you right now. I recommend that you set it aside for now, try something simpler, and try it again in the future, when you have a firmer grasp of LÖVE and Lua.
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Using Love2D to Post on Twitter?
Communicating with web APIs usually require HTTPS which Löve currently does not provide. And Google wants the web to only use HTTPS so it is becoming more and more common.
Re: Using Love2D to Post on Twitter?
I've been wondering about that myself... Its unavoidable. (<_<)bobbyjones wrote:Communicating with web APIs usually require HTTPS which Löve currently does not provide. And Google wants the web to only use HTTPS so it is becoming more and more common.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 8 guests