https://github.com/previousdeveloper/hurriyet-csharp-client
HurriyetApi wrapper for C# - http://developers.hurriyet.com.tr/
https://github.com/previousdeveloper/hurriyet-csharp-client
Last synced: 3 months ago
JSON representation
HurriyetApi wrapper for C# - http://developers.hurriyet.com.tr/
- Host: GitHub
- URL: https://github.com/previousdeveloper/hurriyet-csharp-client
- Owner: previousdeveloper
- Created: 2016-09-19T06:24:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-07T11:54:56.000Z (about 9 years ago)
- Last Synced: 2025-06-21T23:05:11.695Z (7 months ago)
- Language: C#
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Client
HurriyetApi wrapper for C# - http://developers.hurriyet.com.tr
## Install
```bash
PM> Install-Package HurriyetApiClient
```
## How to use
**Init**
```csharp
IHurriyetApiConfiguration configuration = new HurriyetApiConfiguration("apikey");
IHurriyetApiClient _hurriyetApiClient = new HurriyetApiApiClient(configuration);
```
**GET ARTICLES SYNC**
```csharp
[Test]
public void Articles_Test()
{
List result = _hurriyetApiClient.GetArticles().Result;
result.Should().NotBeEmpty();
}
```
**GET ARTICLES ASYNC**
```csharp
[Test]
public async void Article_Async_Test()
{
List result = await _hurriyetApiClient.GetArticles();
result.Should().NotBeEmpty();
}
```
##TODO
- Add more Api Resource
##License
Code and documentation are available according to the *MIT* License (see [LICENSE](https://github.com/ziyasal/Httwrap/blob/master/LICENSE)).