An open API service indexing awesome lists of open source software.

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/

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)).