Performs a request using a PUT method.
Namespace: Nemiro.OAuthAssembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
Syntax
Parameters
- endpoint (Optional)
- Type: System String
URL to which will be sent to the request.
- parameters (Optional)
- Type: Nemiro.OAuth HttpParameterCollection
Parameters to be passed to the request.
- authorization (Optional)
- Type: Nemiro.OAuth HttpAuthorization
Authorization header value.
- headers (Optional)
- Type: System.Collections.Specialized NameValueCollection
HTTP headers for the request.
- contentType (Optional)
- Type: System String
The value of the Content-Type HTTP header.
- accessToken (Optional)
- Type: Nemiro.OAuth AccessToken
Access token to be used in the request.
Return Value
Type: RequestResultReturns an instance of the RequestResult class, which contains the result of the request.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | |
RequestException | |
ArgumentException | The exception occurs when the query parameters are specified at the same time authorization and accessToken. |
Remarks
Can not be used simultaneously accessToken and authorization. Use only one of these parameters.
See Also