From aece307b3278ec93f236663efd119c0e88035bd9 Mon Sep 17 00:00:00 2001 From: Alexey Prokhorov Date: Fri, 20 May 2022 13:47:23 +0300 Subject: [PATCH] Update README.md Add code quotes --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index eff6d3c..3b3087f 100644 --- a/README.md +++ b/README.md @@ -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.