Jump to content




GitHub Program Possibility


7 replies to this topic

#1 Smiley43210

  • Members
  • 204 posts

Posted 07 May 2013 - 06:39 AM

So I remember seeing a thread about a program having GitHub functionality, but it got shut off since CC doesn't have the right HTTP stuff for it. But after thinking about it, couldn't one achieve the effect by using PHP? There are PHP libraries for GitHub (http://developer.git...m/v3/libraries/), and since CC can submit POST and GET requests, it could be possible. Right?

#2 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 07 May 2013 - 07:44 AM

Yes, very possible. Not sure why no one has done it yet.

#3 ardera

  • Members
  • 503 posts
  • LocationGermany

Posted 07 May 2013 - 08:48 AM

I've done an downloader for GH, and I'll release it very soon.

EDIT: You only need a json interpreter/translater or whatever, because the output of the GitHub API is json. (I found mine here: https://github.com/c...a/json/json.lua)
And a base64 decoder if you want to download files.

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 07 May 2013 - 04:59 PM

View PostGravityScore, on 07 May 2013 - 07:44 AM, said:

Yes, very possible. Not sure why no one has done it yet.

Given the track record of programs for CC with PHP interfaces, I doubt very much that it would be a good idea to use any such program. A downloader for github is quite simple and requires none of that. Plus it's doable in thirty lines or so.

#5 Smiley43210

  • Members
  • 204 posts

Posted 07 May 2013 - 05:47 PM

I meant not just downloading, but pushing and committing. And that part is possible with PHP.

#6 Imque

  • Members
  • 134 posts

Posted 07 May 2013 - 05:54 PM

I have already tried this and have files still for it.

#7 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 08 May 2013 - 06:20 AM

committing:


File CRUD

The repository contents API has allowed reading files for a while. Now you can easily commit changes to single files, just like you can in the web UI.

Starting today, these methods are available to you:


#8 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 08 May 2013 - 08:09 PM

View PostSmiley43210, on 07 May 2013 - 05:47 PM, said:

I meant not just downloading, but pushing and committing. And that part is possible with PHP.
While it's possible, it introduces a third-party which hosts the PHP-Server.
Everything works only over this server and clients don't know what the server is really doing.

So the main two problems I see are:
1. Trust in the person's intentions and competence
2. Availability of the PHP-Server/-Files

As a personal workaround it works of course. If I'd like to be able to do something like that I'd setup my own PHP "tunnel", so to speak.
But using the server of someone you only know superficially via a forum is not something that I can see many people wanting to do.
At least not for something serious where real login credentials are at stake. ^_^





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users