C# Class Microsoft.AspNet.WebHooks.InstagramWebHookReceiver

Provides an IWebHookReceiver implementation which supports WebHooks generated by Instagram. Set the 'MS_WebHookReceiverSecret_Instagram' application setting to the application secrets, optionally using IDs to differentiate between multiple WebHooks, for example 'secret0, id1=secret1, id2=secret2'. The corresponding WebHook URI is of the form 'https://<host>/api/webhooks/incoming/instagram/{id}'. For details about Instagram WebHooks, see https://instagram.com/developer/realtime/.
Inheritance: Microsoft.AspNet.WebHooks.WebHookReceiver
Show file Open project: aspnet/WebHooks

Public Methods

Method Description
ReceiveAsync ( string id, System.Web.Http.Controllers.HttpRequestContext context, HttpRequestMessage request ) : Task

Protected Methods

Method Description
VerifySignature ( string id, HttpRequestMessage request ) : Task

Verifies that the signature header matches that of the actual body.

Private Methods

Method Description
GetActions ( Newtonsoft.Json.Linq.JArray data, HttpRequestMessage request ) : IEnumerable
WebHookVerification ( string id, HttpRequestMessage request ) : Task

Method Details

ReceiveAsync() public method

public ReceiveAsync ( string id, System.Web.Http.Controllers.HttpRequestContext context, HttpRequestMessage request ) : Task
id string
context System.Web.Http.Controllers.HttpRequestContext
request System.Net.Http.HttpRequestMessage
return Task

VerifySignature() protected method

Verifies that the signature header matches that of the actual body.
protected VerifySignature ( string id, HttpRequestMessage request ) : Task
id string
request System.Net.Http.HttpRequestMessage
return Task