Skip to content

Instantly share code, notes, and snippets.

@dcouto
Last active February 18, 2022 15:15
Show Gist options
  • Save dcouto/80c2eb6fed137b30851bf204bba06fcd to your computer and use it in GitHub Desktop.
Save dcouto/80c2eb6fed137b30851bf204bba06fcd to your computer and use it in GitHub Desktop.
using Sitecore.Caching;
using Sitecore.Caching.Generics;
using Sitecore.Configuration;
using Sitecore.Diagnostics;
using Sitecore.Sites;
using System;
using System.Collections;
namespace MyApp.Publishing
{
/// <summary>
/// Calls an API method hosted in MyExternalApp.
/// </summary>
public class APICaller
{
public APICaller()
{
}
/// <summary>
/// Calls the API method.
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="args">The arguments.</param>
public void CallAPIMethod(object sender, EventArgs args)
{
// your code to call the API method goes here
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment