maddin2016
3ed011dfd4
add accept header for teams client
2016-06-06 16:30:58 +02:00
maddin2016
41ba208131
add methods to set permission for team repositories
2016-06-06 12:53:06 +02:00
Mordechai Zuber
fe51d42c23
Remove IConnection.Get<T>(... allowAutoRedirect)
2016-04-13 14:37:45 -04:00
Devesh Khandelwal
cdd46465db
Add custom exception for the HTTP 451 response ( #1239 )
...
* Add HTTP 451: Legal Takedown Exception.
* Add LegalRestrictionException in HandleErrors.
* Cast 451 to HttpStatusCode and include exception in csproj files.
* Tests added and "FixProjects".
* Fix: 403 -> 451 in 451Tests.
2016-04-10 14:07:18 -04:00
Brendan Forster
c1c035cf01
moved ConfigureAwait onto same line as await
2016-04-06 20:28:46 -04:00
Brendan Forster
01c55763c7
some more usages in internals that need ConfigureAwait
2016-04-06 20:22:21 -04:00
Brendan Forster
e8df9905db
Merge pull request #1185 from prayankmathur/issue896
...
Implemented Lock/Unlock Functionality for Issues
2016-04-05 17:14:32 -04:00
Prayank Mathur
8e49f04a5d
Added implementation for delete that takes custom media type header and changed definition for Unlock accordingly
2016-03-30 14:30:37 +05:30
aedampir@gmail.com
0a71cb4abe
Connection.cs fixes
2016-03-29 17:36:34 +07:00
aedampir@gmail.com
7f5d446ea8
Redundant commas in object initializers were removed.
2016-03-24 23:12:12 +07:00
Devesh Khandelwal
b62bcfaec9
Passing on serialize argument to Connection's ctor, wasn't passing on before. Breaks tests.
2016-03-08 00:28:16 +05:30
Ryan Gribble
1f13001fd8
Change the QueueLdapSync calls to use Post<T>(uri) with no body/data
2016-02-12 09:37:33 +10:00
Ryan Gribble
ae73ce6ced
Rename variables
2016-01-07 21:00:11 +10:00
Ryan Gribble
c7b4899d66
Replace all other uses of hardcoded HTTP header strings to declare/use entries in the AcceptHeaders helper class
...
Left test methods alone as it isn't good practice to share these definitions between Test and Implementation classes
2015-12-23 22:21:42 +10:00
Mordechai Zuber
44304ca70b
use string per recommended style
2015-12-16 21:23:36 +02:00
Brendan Forster
80719c0033
aaaand format the code
2015-11-04 13:38:51 -08:00
Brendan Forster
9198f80e5d
Merge pull request #860 from octokit/haacked/code-cleanup
...
Tidying up some code
2015-09-10 11:41:48 +09:00
Mark Taylor
b2c7e1c2a7
Chnage LastApiInfo to GetLastApiInfo with cloned version
2015-08-16 21:27:26 +01:00
Haacked
6c694b5128
🎨 Remove empty statement
2015-08-04 21:14:41 -07:00
Mark Taylor
ba365249a7
Added locking for thread saftey to LastApiInfo
2015-08-02 16:55:39 +01:00
Kristian Hellang
1acdd54704
Removed IApiInfoProvider from IHttpClient
2015-07-31 12:12:46 +02:00
Mark Taylor
f8ee4f94a1
WIP checkin for getting last ApiInfo object
2015-07-31 10:35:51 +01:00
Brendan Forster
982dca5f3d
specify the timeout interval when downloading the archive
2015-06-15 14:17:48 +09:30
Brendan Forster
3acdd10be4
deprecate the optional AllowAutoRedirect parameter
2015-05-31 22:44:41 +09:30
Brendan Forster
d7d7efd2c7
renaming things is hard
2015-05-31 20:34:29 +09:30
Brendan Forster
e5e4b4c8b0
extracting all the cross-platform setup of HttpMessageHandler into
...
a less awful class
2015-05-31 19:23:39 +09:30
Brendan Forster
4d77f0eee1
suppressing a bunch of stuff because murtaugh's law
2015-05-22 17:03:21 +09:30
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
Haacked
afd5f8ab56
Help POST learn about 2fa codes
2015-04-21 16:12:30 -07:00
Haacked
408e95c421
Implement Authorization Create method
2015-04-21 13:51:25 -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
Haacked
93dd16f829
Add more info to TwoFactorChallengeFailedException
...
I was running into an issue where i wanted more information from the
TwoFactorChallengeFailedException. It turns out, the exception could
easily provide both the TwoFactorType AND the authentication code
provided. So 💥 !
2015-04-19 19:42:13 -07:00
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
ff3506f3e8
Make some of the IResponse properties readonly
2015-01-04 19:13:32 -08:00
Haacked
53a6516de2
Change IResponse.Body to object
...
This removes the awkward Body and BodyAsObject property combo we used to
have.
2015-01-04 19:06:50 -08:00
Haacked
09d5c236a4
Rename IResponse<T> to IApiResponse
2015-01-04 18:33:48 -08:00
Haacked
49f95d40f1
Remove Type parameter for IHttpClient send method
...
This keeps the IHttpClient interface simpler and ensures the
deserialization responsibility lies outside of that class. It only
needed the Type parameter for a special case that could be handled in a
better way.
2015-01-04 18:22:05 -08:00
Brendan Forster
037aeb7b1e
route GetOrCreateApplicationAuthentication to new endpoint, if user has set a Fingerprint
2015-01-04 14:36:58 +09:30
Haacked
99b93c1293
Add documentation and refactor some types
2015-01-02 01:14:11 -08:00
Brendan Forster
987282d1d0
generics eh?
2014-12-04 09:15:04 +10:00
Brendan Forster
19d110d14a
extract method on some shared logic
2014-11-08 20:16:24 -08:00
Brendan Forster
a5ba55997f
ensure the timeout is positive
2014-11-08 09:47:58 -08:00
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
c18b156fab
Rename IConnection methods
2014-04-30 21:30:45 -07:00
Haacked
459299b730
We don't need to make this property public after all
2014-04-20 21:50:04 -07:00