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

Github?

Started by Novicode, 09 March 2013 - 05:59 AM
Novicode #1
Posted 09 March 2013 - 06:59 AM
I have created a basic program that can get files from my public repo on github, however, I was wondering (if possible at all), how you would use the github api to be able to login and upload files to my repo from computers, like pastebin's "put".
Lyqyd #2
Posted 09 March 2013 - 07:03 AM
This is likely impossible or a very bad idea, as ComputerCraft's http API is unable to handle authentication. Using a proxy to handle the authentication would likely be a very bad idea.
Novicode #3
Posted 09 March 2013 - 07:07 AM
I figured as much. I think I'll just put the finished or near-finished programs on github, and use it to get configs and such.
Pharap #4
Posted 09 March 2013 - 01:20 PM
Though Cranium has made one for pastebin, so in theory you could if you have the facilities to keep an external server up (php server to handle some of the processing)
remiX #5
Posted 09 March 2013 - 10:13 PM
I have created a basic program that can get files from my public repo on github, however, I was wondering (if possible at all), how you would use the github api to be able to login and upload files to my repo from computers, like pastebin's "put".

I tried this the other day, was very unsuccessful :(/>
It would be cool to have a GitHub version of smartPaste though :[
theoriginalbit #6
Posted 09 March 2013 - 10:21 PM
Until we can edit the http headers we will never be able to do anything advanced with GitHub. nothing can be done with their api without modifying the http header. you can obviously 'get' from GitHub. just nothing else.
Pharap #7
Posted 10 March 2013 - 09:25 AM
Maybe it's time to ask for header editing?
MysticT #8
Posted 10 March 2013 - 11:25 AM
Maybe it's time to ask for header editing?
Already asked a few times. I think Cloudy said he would look into it. Hope it gets done in some future version.
Pharap #9
Posted 10 March 2013 - 11:33 AM
Already asked a few times. I think Cloudy said he would look into it. Hope it gets done in some future version.

Then there's nothing left to do but sit and wait.