Skip to content

kavenegar/kavenegar-cpp

 
 

Repository files navigation

Kavenegar API Client Writen In Modern C++

Total alerts Language grade: C/C++ Language iso: C++ Version Platform Dependencies

If you need to future information about API document Please visit RESTful Document

Installation

First of all, You need to make an account on Kavenegar from Here

After that you just need to pick API-KEY up from My Account section.

Building

  • You need CMake tool for building source code
  • Get Curl & RapidJson [Pay Attention: RapidJson is header only]
  • All source code is written with Pure STL 1z (C++17)
  • MSVC 2017, GCC7.x or Glang 7.x
  • Add KavenegarLib.dll [on Windows], KavenegarLib.dylib [on macOS] or KavenegarLib.so [on Linux] for your project as external library.
  • Import SDK common header #include <Kavenegar>

Usage Example

#include <iostream>
#include <Kavenegar>

int main()
{

  //! Your Api Key
  std::string apiKey {"Your Api-Key"};
  
  //! Kavenegar Default Sender Number 
  std::string senderLine {"10004346"};
  
  //! Http/Https Request method GET/POST type [default is Get method]
  Kavenegar::Method MethodType { Kavenegar::Method::GET }; 
  Kavenegar::KavenegarApi api(MethodType ,"10004346",apiKey);
  
  //ToDo.. try catch exception handling.
  api.send("09140000000","Hi!");
  std::cout << "Result : " << api.getResult(); //JSon Output
    
  return 0;
}

Contribution

Bug fixes, docs, and enhancements welcome! Please let me know kambiz.ceo@gmail.com

ToDo

  • New features
  • Exception handling
  • Post method development
  • Etc...

About

Kavenegar API Client Writen In Modern C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.5%
  • CMake 1.5%