Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add code quotes
  • Loading branch information
iAlexeyProkhorov authored May 20, 2022
1 parent fe7d523 commit aece307
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ You need to do few steps to start working with client:
* Create your personal 'Nova Poshta' account and generate your Api key. Detailed how to do this you can find [here](https://devcenter.novaposhta.ua/start).
* You need to create class implementing interface **INovaPoshtaGateway**. Or you can use our default class **DefaultNovaPoshtaGateway**.
Copy your API key created at first step and paste it in ApiKey parameter or your gateway instance like here:

`using Baroque.NovaPoshta.Client;`

`var gateway = new DefaultNovaPoshtaGateway("yourkey");`
```C#
using Baroque.NovaPoshta.Client;
var gateway = new DefaultNovaPoshtaGateway("yourkey");
```
* Great! You create instance of Nova Poshta gateway. Now you can use API services, which are located in namespace _Baroque.NovaPoshta.Client.Services_. For example you can try get **CommonService**.

`using Baroque.NovaPoshta.Client.Services.Common;`

`void Run()
```C#
using Baroque.NovaPoshta.Client.Services.Common;
void Run()
{
var gateway = new DefaultNovaPoshtaGateway("yourkey");
var commonService = new CommonService(gateway);
}`
}
```
* All other services connect by same way.
* Now you can use all other services in your application.

0 comments on commit aece307

Please sign in to comment.