Kohsuke Kawaguchi
a409b4f49c
Merge branch 'pull-86'
...
Conflicts:
src/main/java/org/kohsuke/github/GHOrganization.java
src/main/java/org/kohsuke/github/Requester.java
src/test/java/org/kohsuke/AppTest.java
2014-05-09 18:30:59 -07:00
Kohsuke Kawaguchi
926776204b
Implemented the builder pattern to my liking
2014-05-09 18:28:34 -07:00
Kohsuke Kawaguchi
a18cde2340
Abstracted away HTTP connector and added OkHttp implementation for convenience
2014-04-13 08:46:21 -07:00
Ricardo Pescuma Domenecci
4712d2c8ac
Using version 2 of jackson
2013-09-28 14:25:23 -03:00
Stephen Connolly
fb078de627
Provide a way to determine if the connection is anonymous
2013-08-29 14:33:04 +01:00
Kohsuke Kawaguchi
589c5783a0
"myself" only makes sense when there's a credential
2013-05-24 12:01:56 -07:00
Aaron Crickenberger
716bfd4611
requireCredential should allow for oauthToken with no login
2013-04-30 15:41:08 -07:00
Kohsuke Kawaguchi
8c78d20e6e
doc improvement
2013-04-23 10:25:57 -07:00
Kohsuke Kawaguchi
abe78cf0bb
Formatting only changes
2013-04-23 10:20:07 -07:00
Kohsuke Kawaguchi
5e3d3dd023
In fact there's no point in looking up the 'token' property since API token is no longer supported by GitHub
2013-04-23 10:05:45 -07:00
Kohsuke Kawaguchi
60175ebfad
if the user name is available, pass that in and save a lookup
2013-04-23 10:05:06 -07:00
Kohsuke Kawaguchi
c6fafe453f
Cleaned up the authentication part of the code
2013-04-23 10:04:20 -07:00
watsonian
da1405a060
Remove apiToken completely.
2013-04-20 11:58:52 -07:00
watsonian
e38eeae533
Update constructor to use OAuth tokens rather than API tokens.
2013-04-20 11:43:54 -07:00
watsonian
8442e7e326
Declare the exception type.
2013-04-19 17:10:29 -07:00
watsonian
e6c82e2003
Stop using deprecated API tokens for Enterprise.
...
Authentication by API token is deprecated and doesn't work anymore.
Instead, authentication should be done via OAuth token now.
2013-04-19 16:27:09 -07:00
Kohsuke Kawaguchi
df857d3a84
doc improvement
2013-04-16 12:14:06 -07:00
Honza Brázdil
e9564f101b
implement retrieving of access token
2013-04-14 05:50:11 +02:00
Johno Crawford
a46c7acbd2
Merge branch 'master' of github.com:kohsuke/github-api
2013-01-24 16:58:42 +01:00
johnou
769d645237
Normalize api url for oauth constructor.
2013-01-24 16:57:51 +01:00
Kohsuke Kawaguchi
45286598aa
adding OAuth support in ~/.github
2013-01-06 16:43:43 -08:00
Johno Crawford
f80cb541d5
Fix base64 encoding.
2013-01-06 21:11:19 +01:00
Johno Crawford
1fe61f72e2
Password is no longer required for api usage.
2013-01-06 13:08:41 +01:00
johnou
f0ab946b88
Removed proprietary api usage.
2013-01-06 04:27:18 +01:00
Johno Crawford
975ef1a43d
Removed last traces of web client.
2013-01-06 04:06:55 +01:00
Kohsuke Kawaguchi
555dab7403
Merge branch 'pull-22'
2013-01-05 17:11:58 -08:00
Kohsuke Kawaguchi
13158a28e1
turns out we never exposed the ability to specify the custom URL.
...
So no backward compatibility provision is needed.
Also in this change, I stopped exposin the password. See the code comment for more details
2013-01-05 17:10:24 -08:00
Kohsuke Kawaguchi
cbaca87bbc
massaging this a bit to accept the full URL
2013-01-05 16:08:42 -08:00
Kohsuke Kawaguchi
5166202f67
follow-up fix and documenting the expected value
2013-01-05 15:59:02 -08:00
johnou
35d45ca47d
JENKINS-13726: Github plugin should work with Guthub enterprise by allowing for overriding the github URL.
2013-01-06 00:47:44 +01:00
Honza Brázdil
b66ede98c7
Retrieve repository directly.
2012-10-20 23:24:56 +02:00
Honza Brázdil
e658a7fa6b
send authentication header on all requests
2012-09-12 18:04:59 +02:00
Kohsuke Kawaguchi
8a95847b0a
Renaming to better represent what it does.
2012-09-05 19:13:10 -07:00
Kohsuke Kawaguchi
435363a246
moved the pagenation API over to Poster
2012-09-05 19:08:29 -07:00
Kohsuke Kawaguchi
b6520cb6f9
got rid of all retrieveXYZ methods in favor of Poster
2012-09-05 18:55:44 -07:00
Kohsuke Kawaguchi
d6d73f5165
A step toward using Poster in place of the retrieve* methods.
...
I was trying to add the flavor of the retrieve method that reads into an existing instance, when I realized that there are just too many orthogonal axes here to rely on overloaded methods.
That calls for a builder pattern, which we already have --- it's called Poster, but it can actually already handle GET and other HTTP requests.
So I'm retiring the retrieveXYZ methods and moving the code into Poster. This is the first step.
2012-09-05 18:53:06 -07:00
Kohsuke Kawaguchi
3f1bb1a214
completed the commit status API
2012-09-05 18:00:50 -07:00
Honza Brázdil
c268a5dd07
removed unused throws statement
2012-08-28 18:59:09 +02:00
Kohsuke Kawaguchi
ba7fe10a08
bug fix
2012-06-18 12:23:20 -07:00
Kohsuke Kawaguchi
8ec2686e72
getName() is null with shallow retrieval
2012-06-13 08:12:18 -07:00
Kohsuke Kawaguchi
4411650c5a
additional tweaks
2012-06-12 14:25:08 -07:00
Kohsuke Kawaguchi
1c15751949
Removing pointless '3' suffix in the method names.
2012-06-12 14:21:43 -07:00
Kohsuke Kawaguchi
82acf4f107
Now that everything is V3 API, there's no need for such enum.
2012-06-12 14:20:52 -07:00
Kohsuke Kawaguchi
b5f7208b0d
Removed v2 API usage and switched to v3.
...
https://github.com/kohsuke/github-api/issues/8
2012-06-12 14:07:27 -07:00
Kohsuke Kawaguchi
057c32d410
added API to retrieve rate limit.
2012-06-04 10:08:31 -07:00
Kohsuke Kawaguchi
33657c9c92
made the authentication header optional.
...
This was needed now that GHPerson.getRepository() always try with authentication on, and it'll break if logged in anonymously
2012-06-04 10:05:03 -07:00
Kohsuke Kawaguchi
fff07bf70b
fixed a bug in error handling
2012-04-24 16:14:13 -07:00
Kohsuke Kawaguchi
f5b34861bd
avoid NPE
2012-04-12 11:01:43 -07:00
Kohsuke Kawaguchi
a947672320
doc improvement
2012-04-11 16:34:37 -07:00
Kohsuke Kawaguchi
5496e2b553
added pagenation support
2012-04-11 16:30:31 -07:00