{"repo":"ButterCMS/buttercms-csharp","free":true,"listed":false,"github":"https://github.com/ButterCMS/buttercms-csharp","clone":"git clone https://github.com/ButterCMS/buttercms-csharp.git","description":".NET API client for ButterCMS (https://buttercms.com)","language":"C#","stars":42,"topics":["dotnet","csharp","cms","asp-net","asp-net-mvc","api-client"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"buttercms-csharp .NET Standard (2.1) Library for ButterCMS API. Documentation For a comprehensive list of examples, check out the API documentation. Installation To install ButterCMS, run the following command in the Package Manager Console The library can also be installed to the project via .NET CLI Or by adding the package manually to the project file Usage To get started with the Butter API, instantiate the ButterCMSClient with the API key found in the Butter Admin Settings. An optional timeout parameter can be passed as a TimeSpan; the default is 10 seconds. If the application will be making many Butter API calls, it is recommended to store and re-use the client object. Each Butter client method has a synchronous version and an asynchronous version. Asynchronous methods are appended with the word \"Async\". Preview mode Preview mode can be used to setup a staging website for previewing content fields or for testing content during local development. To fetch content from preview mode add an additional argument, true , to the package initialization: Sections Posts Authors Categories Feeds Collections Pages Class Definitions Exceptions Posts List Posts Listing posts returns a PostsResponse object. This object consists of a metadata object and IEnumerable&lt;Post&gt; ListPosts() Parameters Parameter Default Description --- --- --- page(optional) 1 Used to paginate through older posts. pageSize(optional) 10 Used to set the number of blog posts shown per page. excludeBody(option","default_branch":null,"files":null,"tree":[],"storefront":"/r/ButterCMS","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ButterCMS/buttercms-csharp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}