webhook
/webhook
Webhooks are asynchronous outbound notifications of events to an external server. For a complete description of Webhooks, please see:
Topics -> Webhooks
The Webhook resource allows for programmatic configuration of Webhooks on an UltraCart account. This document
only covers the configuration of webhooks. Please consult each individual resource for details on the webhooks
that a particular resource supports.
An example usage of this webhook resource is a Wordpress plugin creating a webhook so that item related events
trigger webhook notifications to the Wordpress server so it can update it's local cache.
using System;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Model;
using NUnit.Framework;
namespace SdkSample.webhook
{
public class Introduction
{
[Test]
public void ExecuteTest()
{
//TODO-PT
}
public static void IntroductionCall()
{
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new WebhookApi(simpleKey);
}
}
}
package webhook;
import com.ultracart.admin.v2.WebhookApi;
import com.ultracart.admin.v2.models.Coupon;
import com.ultracart.admin.v2.models.CouponResponse;
import com.ultracart.admin.v2.util.ApiException;
public class Introduction {
public static void main(String[] args) throws ApiException {
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
final String apiKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
WebhookApi webhookApi = new WebhookApi(apiKey);
// TODO-PT
}
}