Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [v0.1.12](https://github.com/contentstack/contentstack-management-dotnet/tree/v0.1.12)
- Fix
- Fix the Delivery Token URL
- Made the Summary More Readable

## [v0.1.11](https://github.com/contentstack/contentstack-management-dotnet/tree/v0.1.11)
- Feat
- Add support for custom Http client and IHttpClientFactory
Expand Down
36 changes: 18 additions & 18 deletions Contentstack.Management.Core/ContentstackClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class ContentstackClient : IContentstackClient
private HttpClient _httpClient;
private bool _disposed = false;

private string Version => "0.1.11";
private string Version => "0.1.12";
private string xUserAgent => $"contentstack-management-dotnet/{Version}";
#endregion

Expand All @@ -59,10 +59,10 @@ public class ContentstackClient : IContentstackClient
/// <pre><code>
/// var options = new ContentstackClientOptions()
/// {
/// Host = &quot;&lt;API_HOST&gt;&quot;,
/// Authtoken = &quot;&lt;AUTHTOKEN&gt;&quot;
/// Host = "<API_HOST>",
/// Authtoken = "<AUTHTOKEN>"
/// }
/// ContentstackClient client = new ContentstackClient(new OptionsWrapper&lt;ContentstackClientOptions&gt;(options));
/// ContentstackClient client = new ContentstackClient(new OptionsWrapper<ContentstackClientOptions>(options));
/// </code></pre>
/// </example>
public ContentstackClient(IOptions<ContentstackClientOptions> contentstackOptions)
Expand Down Expand Up @@ -116,7 +116,7 @@ public ContentstackClient(ContentstackClientOptions contentstackOptions) :
/// <param name="proxyCredentials">Credentials to use with a proxy.</param>
/// <example>
/// <pre><code>
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
/// ContentstackClient client = new ContentstackClient("<AUTHTOKEN>", "<API_HOST>");
/// </code></pre>
/// </example>
public ContentstackClient(
Expand Down Expand Up @@ -283,7 +283,7 @@ private void ThrowIfDisposed()
/// </summary>
/// <example>
/// <pre><code>
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
/// ContentstackClient client = new ContentstackClient("<AUTHTOKEN>", "<API_HOST>");
/// User user = client.User();
/// </code></pre>
/// </example>
Expand All @@ -300,8 +300,8 @@ public User User()
/// <param name="uid">Organization uid.</param>
/// <example>
/// <pre><code>
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
/// Organization organization = client.Organization(&quot;&lt;ORG_UID&gt;&quot;);
/// ContentstackClient client = new ContentstackClient("<AUTHTOKEN>", "<API_HOST>");
/// Organization organization = client.Organization("<ORG_UID>");
/// </code></pre>
/// </example>
/// <returns>The <see cref="Models.Organization" />.</returns>
Expand All @@ -318,8 +318,8 @@ public Organization Organization(string uid = null)
/// <param name="managementToken">Stack Management token </param>
/// <example>
/// <pre><code>
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
/// Stack Stack = client.Stack(&quot;&lt;API_KEY&gt;&quot;);
/// ContentstackClient client = new ContentstackClient("<AUTHTOKEN>", "<API_HOST>");
/// Stack Stack = client.Stack("<API_KEY>");
/// </code></pre>
/// </example>
/// <returns>The <see cref="Models.Stack" />.</returns>
Expand All @@ -336,8 +336,8 @@ public Stack Stack(string apiKey = null, string managementToken = null, string b
/// <param name="token">The optional 2FA token.</param>
/// <example>
/// <pre><code>
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
/// NetworkCredential credentials = new NetworkCredential(&quot;&lt;EMAIL&gt;&quot;, &quot;&lt;PASSWORD&gt;&quot;);
/// ContentstackClient client = new ContentstackClient("<AUTHTOKEN>", "<API_HOST>");
/// NetworkCredential credentials = new NetworkCredential("<EMAIL>", "<PASSWORD>");
/// ContentstackResponse contentstackResponse = client.Login(credentials);
/// </code></pre>
/// </example>
Expand All @@ -357,8 +357,8 @@ public ContentstackResponse Login(ICredentials credentials, string token = null)
/// <param name="token">The optional 2FA token.</param>
/// <example>
/// <pre><code>
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
/// NetworkCredential credentials = new NetworkCredential(&quot;&lt;EMAIL&gt;&quot;, &quot;&lt;PASSWORD&gt;&quot;);
/// ContentstackClient client = new ContentstackClient("<AUTHTOKEN>", "<API_HOST>");
/// NetworkCredential credentials = new NetworkCredential("<EMAIL>", "<PASSWORD>");
/// ContentstackResponse contentstackResponse = await client.LoginAsync(credentials);
/// </code></pre>
/// </example>
Expand Down Expand Up @@ -398,7 +398,7 @@ internal void ThrowIfNotLoggedIn()
/// <param name="authtoken">The optional authroken in case user want to logout.</param>
/// <example>
/// <pre><code>
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
/// ContentstackClient client = new ContentstackClient("<AUTHTOKEN>", "<API_HOST>");
/// ContentstackResponse contentstackResponse = client.Logout();
/// </code></pre>
/// </example>
Expand All @@ -416,7 +416,7 @@ public ContentstackResponse Logout(string authtoken = null)
/// <param name="authtoken">The optional authroken in case user want to logout.</param>
/// <example>
/// <pre><code>
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
/// ContentstackClient client = new ContentstackClient("<AUTHTOKEN>", "<API_HOST>");
/// ContentstackResponse contentstackResponse = await client.LogoutAsync();
/// </code></pre>
/// </example>
Expand All @@ -435,7 +435,7 @@ public Task<ContentstackResponse> LogoutAsync(string authtoken = null)
/// </summary>
/// <example>
/// <pre><code>
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
/// ContentstackClient client = new ContentstackClient("<AUTHTOKEN>", "<API_HOST>");
/// ContentstackResponse contentstackResponse = client.GetUser();
/// </code></pre>
/// </example>
Expand All @@ -454,7 +454,7 @@ public ContentstackResponse GetUser(ParameterCollection collection = null)
/// </summary>
/// <example>
/// <pre><code>
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
/// ContentstackClient client = new ContentstackClient("<AUTHTOKEN>", "<API_HOST>");
/// ContentstackResponse contentstackResponse = await client.GetUserAsync();
/// </code></pre>
/// </example>
Expand Down
Loading