PortableRest 3.1.0-Beta3
See the version list below for details.
Requires NuGet 2.8.1 or higher.
dotnet add package PortableRest --version 3.1.0-Beta3
NuGet\Install-Package PortableRest -Version 3.1.0-Beta3
<PackageReference Include="PortableRest" Version="3.1.0-Beta3" />
paket add PortableRest --version 3.1.0-Beta3
#r "nuget: PortableRest, 3.1.0-Beta3"
// Install PortableRest as a Cake Addin #addin nuget:?package=PortableRest&version=3.1.0-Beta3&prerelease // Install PortableRest as a Cake Tool #tool nuget:?package=PortableRest&version=3.1.0-Beta3&prerelease
A library for consuming REST APIs from Portable Class Libraries (.NET 4.5, Silverlight 5, Windows Phone 8.x, Windows 8.x, and Windows 10). Designed to be partially drop-in compatible with RestSharp.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NETPlatform | dotnet is compatible. |
Universal Windows Platform | uap was computed. uap10.0 is compatible. |
-
.NETFramework 4.5
- No dependencies.
-
.NETFramework 4.6
- Newtonsoft.Json (>= 7.0.1)
- System.Collections (>= 4.0.10)
- System.Diagnostics.Debug (>= 4.0.10)
- System.IO (>= 4.0.10)
- System.Linq (>= 4.0.0)
- System.Net.Http (>= 4.0.0)
- System.Net.Primitives (>= 4.0.10)
- System.Reflection (>= 4.0.10)
- System.Reflection.Extensions (>= 4.0.0)
- System.Reflection.TypeExtensions (>= 4.0.0)
- System.Resources.ResourceManager (>= 4.0.0)
- System.Runtime (>= 4.0.20)
- System.Runtime.Extensions (>= 4.0.10)
- System.Runtime.Serialization.Primitives (>= 4.0.10)
- System.Runtime.Serialization.Xml (>= 4.0.10)
- System.Text.Encoding (>= 4.0.10)
- System.Threading.Tasks (>= 4.0.10)
- System.Xml.ReaderWriter (>= 4.0.10)
- System.Xml.XDocument (>= 4.0.10)
- System.Xml.XmlSerializer (>= 4.0.10)
-
.NETPlatform 5.0
- Newtonsoft.Json (>= 7.0.1)
- System.Collections (>= 4.0.10)
- System.Diagnostics.Debug (>= 4.0.10)
- System.IO (>= 4.0.10)
- System.Linq (>= 4.0.0)
- System.Net.Http (>= 4.0.0)
- System.Net.Primitives (>= 4.0.10)
- System.Reflection (>= 4.0.10)
- System.Reflection.Extensions (>= 4.0.0)
- System.Reflection.TypeExtensions (>= 4.0.0)
- System.Resources.ResourceManager (>= 4.0.0)
- System.Runtime (>= 4.0.20)
- System.Runtime.Extensions (>= 4.0.10)
- System.Runtime.Serialization.Primitives (>= 4.0.10)
- System.Runtime.Serialization.Xml (>= 4.0.10)
- System.Text.Encoding (>= 4.0.10)
- System.Threading.Tasks (>= 4.0.10)
- System.Xml.ReaderWriter (>= 4.0.10)
- System.Xml.XDocument (>= 4.0.10)
- System.Xml.XmlSerializer (>= 4.0.10)
-
MonoAndroid 0.0
- No dependencies.
-
MonoTouch 0.0
- No dependencies.
-
Portable Class Library (.NETFramework 4.5, Silverlight 5.0, Windows 8.0, WindowsPhone 8.0, WindowsPhoneApp 8.1)
- Microsoft.Bcl (>= 1.1.10)
- Microsoft.Bcl.Async (>= 1.0.168)
- Microsoft.Bcl.Build (>= 1.0.21)
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 7.0.1)
-
UAP 10.0
- Newtonsoft.Json (>= 7.0.1)
- System.Collections (>= 4.0.10)
- System.Diagnostics.Debug (>= 4.0.10)
- System.IO (>= 4.0.10)
- System.Linq (>= 4.0.0)
- System.Net.Http (>= 4.0.0)
- System.Net.Primitives (>= 4.0.10)
- System.Reflection (>= 4.0.10)
- System.Reflection.Extensions (>= 4.0.0)
- System.Reflection.TypeExtensions (>= 4.0.0)
- System.Resources.ResourceManager (>= 4.0.0)
- System.Runtime (>= 4.0.20)
- System.Runtime.Extensions (>= 4.0.10)
- System.Runtime.Serialization.Primitives (>= 4.0.10)
- System.Runtime.Serialization.Xml (>= 4.0.10)
- System.Text.Encoding (>= 4.0.10)
- System.Threading.Tasks (>= 4.0.10)
- System.Xml.ReaderWriter (>= 4.0.10)
- System.Xml.XDocument (>= 4.0.10)
- System.Xml.XmlSerializer (>= 4.0.10)
-
Windows 8.0
- No dependencies.
-
WindowsPhone 8.0
- No dependencies.
-
WindowsPhoneApp 8.1
- No dependencies.
-
Xamarin.iOS 0.0
- No dependencies.
NuGet packages (13)
Showing the top 5 NuGet packages that depend on PortableRest:
Package | Downloads |
---|---|
Bing.RestClient
Curiously, Bing does not provide a framework for accessing their REST APIs in .NET. This library attempts to solve that problem, with a PCL that works on .NET 4.5, Windows 8.x, Windows Phone 8, and Mono. |
|
PortableRest.Signed
This package has been deprecated, because the core library is being signed again (per Microsoft OSS standards). Please use the PortableRest package instead. |
|
NewRelic.RestApi
A Portable Class Library implementation of the New Relic REST API. Powered by PortableRest. Supports .NET 4.5, Windows Phone 8, and Windows 8.x. This project is not endorsed or supported by New Relic. NOTE: You may NOT use this library to build applications that replicate the functionality of http://bit.ly/newrelicalerts for sale in the Windows Phone 8 or Windows 8.x stores. |
|
Wistia.Core
.NET wrapper for Wistia's API |
|
Xbox.Music
A Portable Class Library implementation of the Xbox Music API, powered by PortableRest. (.NET 4.5, Windows Phone 8, and Windows 8.x) |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.1.0-CI-20231120-225453 | 800 | 11/20/2023 |
4.1.0-CI-20220725-160035 | 823 | 7/25/2022 |
4.1.0-CI-20201113-175637 | 1,811 | 11/13/2020 |
4.1.0-CI-20200529-152344 | 2,502 | 5/29/2020 |
4.1.0-CI-20200528-221935 | 472 | 5/28/2020 |
4.1.0-CI-20200528-213121 | 486 | 5/28/2020 |
4.1.0-CI-20200528-192624 | 476 | 5/28/2020 |
4.1.0-CI-20200527-232655 | 553 | 5/27/2020 |
4.1.0-CI-20200527-222425 | 487 | 5/27/2020 |
4.1.0-CI-20200527-221340 | 512 | 5/27/2020 |
4.0.1-CI-20191119-191939 | 767 | 11/19/2019 |
4.0.1-CI-20191119-191316 | 424 | 11/19/2019 |
4.0.0 | 5,496 | 11/13/2019 |
4.0.0-beta1.12 | 2,004 | 12/9/2017 |
4.0.0-alpha1 | 1,441 | 6/10/2017 |
3.1.0-beta7 | 2,509 | 10/10/2016 |
3.1.0-beta6 | 1,123 | 9/13/2016 |
3.1.0-beta5 | 1,096 | 9/10/2016 |
3.1.0-Beta4 | 1,971 | 11/30/2015 |
3.1.0-Beta3 | 1,443 | 11/30/2015 |
3.1.0-Beta2a | 1,304 | 11/16/2015 |
3.1.0-Beta2 | 1,187 | 11/16/2015 |
3.1.0-Beta1 | 1,408 | 8/27/2014 |
3.0.1 | 76,133 | 8/16/2014 |
3.0.0 | 17,924 | 8/15/2014 |
3.0.0-RC12 | 3,530 | 8/7/2014 |
2.5.4 | 6,266 | 4/17/2014 |
2.5.3 | 1,422 | 4/15/2014 |
2.5.2 | 1,406 | 4/15/2014 |
2.5.1 | 1,400 | 4/13/2014 |
2.4.2 | 1,501 | 4/5/2014 |
2.4.1 | 9,251 | 1/8/2014 |
2.4.0 | 1,378 | 1/5/2014 |
2.3.0 | 1,820 | 12/21/2013 |
2.1.2 | 1,502 | 11/27/2013 |
2.1.1 | 6,933 | 11/23/2013 |
2.1.0 | 1,327 | 11/19/2013 |
2.0.0 | 1,951 | 10/27/2013 |
3.1.0
• Multipart/form-data support.
• Windows Universal-specific binaries.
3.0.1
• Tons of bug fixes.
• Improved the way PortableRest handles parameters being sent over the wire.
• Added constructor overload that accepts a custom HttpMessageHandler for all requests the HttpClient makes.
• Added support for using the AsyncOAuth NuGet package for leveraging OAuth in your requests.
• Added support for specifying the JsonSerializerSettings on a client-wide or per-request basis, with request-specific settings taking precedence.
• Enhanced the SendAsync method to pass exceptions thrown by the serializer into the RestResponse.
• The serializer now strips namespaces from XML payloads before attempting to de-serialize. You may need to update your objects to [DataContract(Namespace="")] if you use XML-based Rest services.
• WARNING: Strong name signing is removed in this version. See the PortableRest.Signed package for those needing SNK support (but you will not be able to use AsyncOAuth, as it is not signed).
2.5
• New generic and non-generic SendAsync() methods that return a RestResponse with more detailed information.
• Fixed an issue where the Async call can deadlock in certain situations.
• Added CancellationToken support.
• Windows Phone 8.1 support.
2.4.1
• RestClient.CookieContainer property to share cookies between requests.
• (Breaking) Reorganized namespaces.
• Added more documentation.
2.4
• Added ability to set encoding on individual parameters.
• Added request-specific headers for OAuth compatibility.
• Added RestClient.SetUserAgent()to set the UserAgent for you.
2.3
• Triumphant return of SL5 support.
• Better documentation.
• RestClient.ExecuteAsync can return the raw string.
• Misc. bug fixes.
2.1
• Adds RestRequest.AddQueryString().
• Updated minimum package references for Mono-compatible licenses.
2.0
• Removed support for Silverlight due to Microsoft's new Reflection framework on .NET 4.5.
• Added initial support for submitting XML payloads.
• Strong-name signed the assembly so it can be used in strong-name signed projects.
1.2: Updated to latest packages, include Microsoft.Bcl.Build directly to help with app.config issues.
1.1: Compiled to HttpClient 2.2.
1.0.8: Compile to new dependencies.
1.0.6: Update based on changes to HttpClient.Compression.
1.0.5: Added Compression support.
1.0.4-alpha: Added basic POST support, & updated XML deserialization.
1.0.3: Added XML deserialization with DataContracts.
1.0.0: First release.