Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liebeck/zeitonlineapisharp
C# Wrapper for ZEIT ONLINE Content API
https://github.com/liebeck/zeitonlineapisharp
Last synced: 20 days ago
JSON representation
C# Wrapper for ZEIT ONLINE Content API
- Host: GitHub
- URL: https://github.com/liebeck/zeitonlineapisharp
- Owner: Liebeck
- License: mit
- Created: 2014-07-31T10:59:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-02T13:40:36.000Z (almost 10 years ago)
- Last Synced: 2024-11-05T21:27:52.608Z (2 months ago)
- Language: C#
- Size: 430 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ZeitOnlineAPISharp
==================C# Wrapper for ZEIT ONLINE Content API (http://developer.zeit.de/index/)
Status
==================
Not all endpoints are currently added. If you need to consume an endpoint I haven't added, feel free to open an issue.Dependencies
==================
ZeitOnlineAPISharp uses Json.Net via NuGetUsage
==================
```
ZeitOnlineAPISharp.API api = new ZeitOnlineAPISharp.API("YOUR API KEY");ZeitOnlineAPISharp.Endpoints.KeywordEndpoint keywordEndpoint = new ZeitOnlineAPISharp.Endpoints.KeywordEndpoint(api);
var response = keywordEndpoint.Query("gaza");ZeitOnlineAPISharp.Endpoints.ContentEndpoint contentEndpoint = new ZeitOnlineAPISharp.Endpoints.ContentEndpoint(api);
var contentResponse = contentEndpoint.Query(response.Matches[0].UUID);ZeitOnlineAPISharp.Endpoints.ClientEndpoint clientEndpoint = new ZeitOnlineAPISharp.Endpoints.ClientEndpoint(api);
var clientResponse = clientEndpoint.Query();ZeitOnlineAPISharp.Endpoints.DepartmentEndpoint departmentEndpoint = new ZeitOnlineAPISharp.Endpoints.DepartmentEndpoint(api);
var departmentReponse = departmentEndpoint.Query("politik");
```The wrappers uses a small waiting period of _API.WaitPeriodMilliseconds_ between multiple requests.
You can set the _API.LimitRate_ property to _true/false_, depending on whether you want to use wait between multiple requests.