/// <summary> /// List Templates Gets a list of Template Metadata objects for all templates. Up to 25 results returned before results are paginated. /// </summary> /// <exception cref="IO.Dyspatch.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="accept">A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"</param> /// <param name="cursor">A cursor value used to retrieve a specific page from a paginated result set. (optional)</param> /// <returns>Task of TemplatesRead</returns> public async System.Threading.Tasks.Task <TemplatesRead> GetTemplatesAsync(string accept, string cursor = default(string)) { IO.Dyspatch.Client.ApiResponse <TemplatesRead> localVarResponse = await GetTemplatesAsyncWithHttpInfo(accept, cursor); return(localVarResponse.Data); }
/// <summary> /// List Templates Gets a list of Template Metadata objects for all templates. Up to 25 results returned before results are paginated. /// </summary> /// <exception cref="IO.Dyspatch.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="accept">A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"</param> /// <param name="cursor">A cursor value used to retrieve a specific page from a paginated result set. (optional)</param> /// <returns>TemplatesRead</returns> public TemplatesRead GetTemplates(string accept, string cursor = default(string)) { IO.Dyspatch.Client.ApiResponse <TemplatesRead> localVarResponse = GetTemplatesWithHttpInfo(accept, cursor); return(localVarResponse.Data); }
/// <summary> /// Get Template by ID Gets a template object with the matching ID. If the template has published content the \"compiled\" field will contain the template . /// </summary> /// <exception cref="IO.Dyspatch.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="templateId">A template ID</param> /// <param name="targetLanguage">The type of templating language to compile as. Should only be used for visual templates.</param> /// <param name="accept">A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"</param> /// <returns>Task of TemplateRead</returns> public async System.Threading.Tasks.Task <TemplateRead> GetTemplateByIdAsync(string templateId, string targetLanguage, string accept) { IO.Dyspatch.Client.ApiResponse <TemplateRead> localVarResponse = await GetTemplateByIdAsyncWithHttpInfo(templateId, targetLanguage, accept); return(localVarResponse.Data); }
/// <summary> /// Get Template by ID Gets a template object with the matching ID. If the template has published content the \"compiled\" field will contain the template . /// </summary> /// <exception cref="IO.Dyspatch.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="templateId">A template ID</param> /// <param name="targetLanguage">The type of templating language to compile as. Should only be used for visual templates.</param> /// <param name="accept">A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"</param> /// <returns>TemplateRead</returns> public TemplateRead GetTemplateById(string templateId, string targetLanguage, string accept) { IO.Dyspatch.Client.ApiResponse <TemplateRead> localVarResponse = GetTemplateByIdWithHttpInfo(templateId, targetLanguage, accept); return(localVarResponse.Data); }
/// <summary> /// Get Localization Object by ID Returns the published content associated with the localization of the matching ID /// </summary> /// <exception cref="IO.Dyspatch.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="localizationId">A localization ID</param> /// <param name="targetLanguage">The type of templating language to compile as. Should only be used for visual templates.</param> /// <param name="accept">A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"</param> /// <returns>Task of LocalizationRead</returns> public async System.Threading.Tasks.Task <LocalizationRead> GetPublishedLocalizationByIdAsync(string localizationId, string targetLanguage, string accept) { IO.Dyspatch.Client.ApiResponse <LocalizationRead> localVarResponse = await GetPublishedLocalizationByIdAsyncWithHttpInfo(localizationId, targetLanguage, accept); return(localVarResponse.Data); }
/// <summary> /// Get Localization Object by ID Returns the published content associated with the localization of the matching ID /// </summary> /// <exception cref="IO.Dyspatch.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="localizationId">A localization ID</param> /// <param name="targetLanguage">The type of templating language to compile as. Should only be used for visual templates.</param> /// <param name="accept">A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"</param> /// <returns>LocalizationRead</returns> public LocalizationRead GetPublishedLocalizationById(string localizationId, string targetLanguage, string accept) { IO.Dyspatch.Client.ApiResponse <LocalizationRead> localVarResponse = GetPublishedLocalizationByIdWithHttpInfo(localizationId, targetLanguage, accept); return(localVarResponse.Data); }