Commit Graph

62 Commits

Author SHA1 Message Date
Kristian Hald
3d56bbf87f Merge remote-tracking branch 'upstream/master' into pr-495ext
Conflicts:
	Octokit/Octokit-MonoAndroid.csproj
	Octokit/Octokit-Monotouch.csproj
2015-05-09 12:51:28 +02:00
Henrik Andersson
3a915fe6cf 🚦 for following redirects 2015-05-08 18:31:46 +10:00
Henrik Andersson
09d1932b4a Add method for getting repo archive link 2015-05-08 18:31:44 +10:00
Haacked
119d331b44 Somebody take the keyboard away from me 2015-04-21 16:25:08 -07:00
Haacked
afd5f8ab56 Help POST learn about 2fa codes 2015-04-21 16:12:30 -07:00
Haacked
23bb76a112 Implement Authorizations Delete method with 2fa code
When we delete an authorization, we often need to use basic
authentication because the client might not have the associated token
stored anymore. If 2fa is enabled, the client needs to be able to pass
that along.
2015-04-21 13:40:26 -07:00
Kristian Hald
261e47f2f5 Implemented data less 'Post' method and used in ping and test hook calls. 2015-04-20 23:19:59 +02:00
Brendan Forster
c5adaffe8a them newlines 2015-02-16 09:27:00 +09:30
Brendan Forster
08a2b143d7 missed passing this parameter down 2015-01-29 16:25:03 +09:30
Brendan Forster
b8bb2a8277 Merge branch 'master' into new-authorization-api
Conflicts:
	Octokit.Tests/Clients/AuthorizationsClientTests.cs
	Octokit.Tests/Reactive/AuthorizationExtensionsTests.cs
	Octokit/Http/Connection.cs
	Octokit/Models/Response/Authorization.cs
	Octokit/Octokit-Mono.csproj
	Octokit/Octokit-MonoAndroid.csproj
	Octokit/Octokit-Monotouch.csproj
	Octokit/Octokit-Portable.csproj
	Octokit/Octokit-netcore45.csproj
2015-01-28 09:16:16 +09:30
Haacked
fa363b169f Remove StatusCode property from ApiResponse
We really want ApiResponse to be a composite of IResponse and the
deserialized content.
2015-01-04 19:25:43 -08:00
Haacked
4c8bab20eb IApiResponse no longer inherits IResponse 2015-01-04 18:58:53 -08:00
Brendan Forster
037aeb7b1e route GetOrCreateApplicationAuthentication to new endpoint, if user has set a Fingerprint 2015-01-04 14:36:58 +09:30
Brendan Forster
fc5c060588 well shit, this builds 2014-10-24 13:06:29 -07:00
Dillon Buchanan
f45fc8e3ff Implementing the rest of the Notifications API 2014-10-14 10:40:26 -02:00
Brendan Forster
f777bc5b63 added overloads for Delete to accept a payload 2014-07-08 10:09:34 +09:30
Paul Betts
1c8ac1d32a Fix up ApiExtensions 2014-04-30 21:31:52 -07:00
Paul Betts
c18b156fab Rename IConnection methods 2014-04-30 21:30:45 -07:00
Nigel Sampson
2b470ed5dc Unit tests accepts overrides 2014-04-08 10:46:32 +12:00
Nigel Sampson
034da197da Accepts parameter for Get 2014-03-26 23:08:00 +13:00
Nigel Sampson
90aa5696a0 Accepts parameter for Patch 2014-03-26 22:58:37 +13:00
Amy Palamountain
63da057642 Provide cancellation token option 2014-02-16 17:04:59 +13:00
Amy Palamountain
e71c3e3d5f GetQueuedOperation<T> takes cancellation token
+ test fix up and test of cancellation.
2014-02-16 17:04:56 +13:00
Amy Palamountain
34383261d7 Moved Queued Wait into IApiConnection 2014-02-16 17:04:46 +13:00
Henrik Andersson
5f93e1f936 Return a more helpful error message in the event of a 404 due to an invalid refs path. 2013-12-29 10:30:04 +10:00
Haacked
c96b00650e Add comments to concrete types
We now have a build task that copies comments from interface to
implementation.
2013-12-11 14:22:39 -08:00
Haroon
fff1712fa0 updated wording 2013-11-14 22:40:06 +00:00
Haroon
2ee9682ba1 Rename method name - it was a PUT 2013-11-14 11:49:20 +00:00
Haroon
2ac500ba2c Added Task Put(Uri uri) 2013-11-14 11:49:18 +00:00
Haacked
a363696544 Filled in more documentation. Made it consistent. 2013-11-07 10:14:01 -08:00
Brendan Forster
70bb3bdbfc 💄 trim some long lines 2013-10-31 12:22:43 +11:00
Brendan Forster
43e82e124f doing await right by calling .ConfigureAwait(false) 2013-10-31 12:06:46 +11:00
Brendan Forster
c22a9c874f some more cleanup of unnecessary async/await 2013-10-31 11:39:09 +11:00
Haacked
e1d618dcaa Implement AssigneesClient
Implement client to list and check available assignees for a repository
2013-10-23 14:51:48 -07:00
Haacked
998f5f54fd Change ReadOnlyPagedCollection to accept a Func
This is technically better because the old way was actually losing
accepts header and parameters.
2013-10-15 16:12:58 -07:00
Haacked
995e0c5b55 More api cleanup
Make accepts come before contentType everywhere. Also remove unnecessary
overloads of IConnection.
2013-10-15 15:43:52 -07:00
Haacked
fa4402f957 Rename endpoint to uri everywhere 2013-10-15 14:06:04 -07:00
Haacked
50a197742d Fix releases client to pass accepts header 2013-10-15 13:59:14 -07:00
Haacked
25c83ac206 Reorder accepts and contentType parameters 2013-10-15 13:47:49 -07:00
Haacked
d6e560c737 Remove type argument from DeleteAsync 2013-10-15 13:43:16 -07:00
half-ogre
6dc68a29af add API doc for ApiConnection 2013-10-15 11:44:03 -07:00
Haacked
f49939ab10 Add Put tests and fix test names 2013-10-15 10:09:25 -07:00
half-ogre
5ff270dc55 use HTTP verbs for clarity: PATCH edition 2013-10-14 12:41:35 -07:00
half-ogre
e933ca7391 make Upload a generic POST
The Releases API-specific part of uploading (the accept header) is now
in the Releases client and the API connection just has a generic POST
method. /cc @spraints
2013-10-14 12:38:10 -07:00
half-ogre
a0306ae1df use HTTP verbs for clarity: PUT edition
GetOrCreate no more
2013-10-14 12:14:29 -07:00
half-ogre
e7da50cb9d remove the T from ApiConnection{T}
It isn't buying is much, and by getting rid of it we can make API
connection more general. getting rid of strangeness like GetItem and
Upload
2013-10-14 12:05:10 -07:00
Haacked
33ad79c0fe Implement GetOrCreateApplicationAuthentication
Implements the endpoint for creating an application authorization token.
2013-10-09 19:54:05 -07:00
Haacked
2d81cb37cc Move more types into the Octokit namespace
This makes it so GHfW doesn't have to reference Octokit.Internal
2013-10-08 17:02:51 -07:00
half-ogre
6f3fa81789 move internal stuff to .Internal namespace 2013-10-08 15:14:06 -07:00
half-ogre
39b4c35e7c move clients into root namespace
Only we can stop namespace proliferation.
2013-10-08 15:08:00 -07:00