• WebhooksApi - functional programming interface

    Parameters

    Returns {
        adminCreateWebhook(groupId, appId, serviceId, body, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
        adminDeleteWebhook(groupId, appId, serviceId, incomingWebhookId, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
        adminGetWebhook(groupId, appId, serviceId, incomingWebhookId, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
        adminListWebhooks(groupId, appId, serviceId, options?) => Promise<((axios?, basePath?) => AxiosPromise<any>)>;
        adminUpdateWebhook(groupId, appId, serviceId, incomingWebhookId, body, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
    }

    • adminCreateWebhook:function
      • Create a webhook.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>

        Summary

        Create a webhook

        Throws

    • adminDeleteWebhook:function
      • Delete a webhook.

        Parameters

        • groupId: any

          An Atlas Project/Group ID.

        • appId: any

          The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.

        • serviceId: any

          The unique `_id` value of a service.

        • incomingWebhookId: any

          The unique `_id` value of an incoming webhook

        • Optional options: AxiosRequestConfig<any>

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>

        Summary

        Delete a webhook

        Throws

    • adminGetWebhook:function
      • Retrieve a webhook.

        Parameters

        • groupId: any

          An Atlas Project/Group ID.

        • appId: any

          The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.

        • serviceId: any

          The unique `_id` value of a service.

        • incomingWebhookId: any

          The unique `_id` value of an incoming webhook

        • Optional options: AxiosRequestConfig<any>

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>

        Summary

        Retrieve a webhook

        Throws

    • adminListWebhooks:function
      • List webhooks.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<any>)>

        Summary

        List webhooks

        Throws

    • adminUpdateWebhook:function
      • Update a webhook.

        Parameters

        • groupId: any

          An Atlas Project/Group ID.

        • appId: any

          The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.

        • serviceId: any

          The unique `_id` value of a service.

        • incomingWebhookId: any

          The unique `_id` value of an incoming webhook

        • body: any

          The updated state of the webhook.

        • Optional options: AxiosRequestConfig<any>

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>

        Summary

        Update a webhook

        Throws

    Export

Generated using TypeDoc