Skip to content

ideabizlk/IdeaBiz-Request-Handler-CSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

##Ideabiz Request handler .NET C#

This library need NEWTON JSON library. Please install it

https://www.nuget.org/packages/Newtonsoft.Json/

How to

  • Import this code to project
  • Install Newtonsoft.Json
  • Generate tokens using https://ideabiz.lk/tools/
  • Save token and credentials to Ideabiz.settings (Can use VisualStudio UI to do this)
  • Create Object
  • Send API call

Create Object

 IdeabizRequestHandler rh =  new IdeabizRequestHandler();

####Send api call can send apicall using sendAPICall method

IdeabizResponse rsponse = rh.sendAPICall(url, IdeabizAPIAuth.REQUEST_METHOD.POST, body, "application/json","application/json");

####Parameters

Parameters Description
URL Request full URL (eg : https://ideabiz.lk/apicall/smsmessaging/v2/94777123456/request
method IdeabizAPIAuth.REQUEST_METHOD GET OR POST
body plain text body. JSON string or urlencoded body
contentType Content type, eg: application/json
accept Accept content type : eg application/json

####Return IdeabizResponse class

Parameters Description
status SUCCESS OR ERROR
statusCode HTTP status code (Eg : 200,400)
body API call response

####Saving credentials This class save credentials in settings. If need save settins on DB or other data souce, please re impliment IdabizAuth.readSettings() and IdabizAuth.saveSettings() method

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages