SocialRequest.SetRequestMethod
------------------------------

Sets the request method for this request.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Social](component_Social.md) | [5.3](newinversion53.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "SocialRequest.SetRequestMethod"; Request; RequestMethod ) 

**MBS**( **"SocialRequest.SetRequestMethod";** /\* Sets the request method for this request. \*/  
**$Request**; /\* The reference number for the social request as you got it from [SocialRequest.New](SocialRequestNew.md) function. \*/   
**$RequestMethod**) /\* What request method to use. Can be DELETE, PUT, POST or GET.e.g. "POST" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Request | The reference number for the social request as you got it from [SocialRequest.New](SocialRequestNew.md) function. | $request |
| RequestMethod | What request method to use. Can be DELETE, PUT, POST or GET. | "POST" |

### Result

Returns OK or error.

### Description

Sets the request method for this request.  
### Examples

Sets request:

 Set Variable \[$request ; Value:MBS ( "[SocialRequest.New](SocialRequestNew.md)"; "Twitter"; "https://api.twitter.com/1.1 /statuses/update.json")\]  
Set Variable \[$r ; Value:MBS ( "SocialRequest.SetRequestMethod"; $request ; "POST")\]  
### See also

- [SocialRequest.GetRequestMethod](SocialRequestGetRequestMethod.md)
- [SocialRequest.New](SocialRequestNew.md)

This function is free to use.

Created 28th August 2015 , last changed 12nd June 2020

  
[SocialRequest.SetAccount](SocialRequestSetAccount.md) - [SocialRequest.SetServiceType](SocialRequestSetServiceType.md)

[HTML Version](SocialRequestSetRequestMethod.shtml)