[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[jfw] Re: Getting Github Milestones via Basic Authentcation
There's a pull request that should resolve the issue.
On Monday, 24 March 2014 01:54:14 UTC-4, Eric wrote:
I've spent a couple of hours hunting around trying to work out how to do this but I'm stumped.
I need to retrieve milestones for a couple of different github repos (all owned by me). I need to use basic authentication as I will only have username and password.
So far I have gotten to this:
//create the registry object containing the github options
$options = new Registry;
//create the github object.
$github = new Github($options);
$milestonedetails = $github->issues->milestones->get('githubusername','reponame',milestoneid);
Works fine on public repos and from my test environment (but I have SSH keys) but won't get milestones for my private repos when I install on host's server.
I can see the constant: AUTHENTICATION_BASIC in the source code but I'm unsure where to set it and what the option name should be. I'm guessing I can pass it as part of the Registry object but I can't work out what name it should be.
Can anyone give me some pointers?
Framework source code: https://github.com/joomla/joomla-framework
Visit http://developer.joomla.org for more information about developing with Joomla!
You received this message because you are subscribed to the Google Groups "Joomla! Framework Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-framework+unsubscribe AT googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-framework.