Skip to content

This is a nuget package that help you in connecting with any api and make (POST,PUT,DELETE,GET) actions.

License

Notifications You must be signed in to change notification settings

BekoSan/APIHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Helper

How to use?

  • Install form nuget package via visual studio or form nuget website directlly.
  • after installing in your project use this code in your program.cs or any file that used as initializer for your project type.
ApiHelperConfig.InitializeClient();
  • To use api actions there is a class called DataProcessor that contains methods for (GET,POST,PUT,DELETE) actions.

  • Example

    here i try to read data form an api , to do this i will use this code.

NOTE: when you call any one of this methods you have to do this inside of an aysnc method.

var result = await DataProcessor.Get<[YourDataModelType]>("your get end point url");

NOTE: This Get method will return an IEnumerable of type you spcified.

About

This is a nuget package that help you in connecting with any api and make (POST,PUT,DELETE,GET) actions.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages