Transloadit.Assembly.AssemblyBuilder.SetTemplateID C# (CSharp) Method

SetTemplateID() public method

Sets the used template ID of the assmebly (you can create multiple Transloadit templates under your account,please use its unique ID here)
public SetTemplateID ( string templateID ) : void
templateID string Template ID of the assmebly
return void
        public void SetTemplateID(string templateID)
        {
            this.templateID = templateID;
        }

Usage Example

        public void NonExistingTemplate()
        {
            ITransloadit transloadit = new Transloadit.Transloadit("YOUR-PUBLIC-API-KEY", "YOUR-SECRET-KEY");
            IAssemblyBuilder assembly = new AssemblyBuilder();

            assembly.SetTemplateID("YOUR-NON-EXISTING-TEMPLATE-ID");

            TransloaditResponse response = transloadit.InvokeAssembly(assembly);

            Assert.AreEqual("TEMPLATE_NOT_FOUND", (string)(response.Data["error"]));
        }
All Usage Examples Of Transloadit.Assembly.AssemblyBuilder::SetTemplateID