MobileServiceClient.InvokeApiAsync Method (String, JToken)

 

Invokes a user-defined custom API of a Azure Mobile Service using an HTTP POST, with support for sending HTTP content.

Namespace:   Microsoft.WindowsAzure.MobileServices
Assembly:  Microsoft.WindowsAzure.Mobile (in Microsoft.WindowsAzure.Mobile.dll)

Syntax

public Task<JToken> InvokeApiAsync(
    string apiName,
    JToken body
)
public:
virtual Task<JToken^>^ InvokeApiAsync(
    String^ apiName,
    JToken^ body
) sealed
abstract InvokeApiAsync : 
        apiName:string *
        body:JToken -> Task<JToken>
override InvokeApiAsync : 
        apiName:string *
        body:JToken -> Task<JToken>
Public Function InvokeApiAsync (
    apiName As String,
    body As JToken
) As Task(Of JToken)

Parameters

  • body
    Type: Newtonsoft.Json.Linq.JToken

    The value to be sent as the HTTP body.

Return Value

Type: System.Threading.Tasks.Task<JToken>

The response content from the custom api invocation.

Implements

IMobileServiceClient.InvokeApiAsync(String, JToken)

See Also

InvokeApiAsync Overload
MobileServiceClient Class
Microsoft.WindowsAzure.MobileServices Namespace

Return to top