Skip to content

textmagic/textmagic-rest-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

TextMagic API C++ wrapper will save you a lot of time, as it includes all the necessary API commands and tests. It will just take you a few seconds to download it from GitHub and install it into your own app or software. After installation, you’ll then be able to send text messages.

Code Example

#include <iostream>  
#include <textmagic.h>

...
 
Textmagic::Rest::RequestData vars;  
Textmagic::Client tm("USERNAME", "API_KEY");  
const char* kContactId = "12345";  
Textmagic::ContactModel contact = tm.Contacts().get(kContactId, vars);  
if (tm.Contacts().isError){  
   // error handler
} else {  
   // use contact 
}  

Installation

To make a static link library, run the following command: make lib If you want to try our examples, run the following command: make all

Requirements

The C++ wrapper for TextMagic API has the following requirements: gcc compiler v4.2.1 or higher

API Reference

Examples

To run one of examples please use following commands:

cd PROJECT_DIR
make contacts_example
bin/contacts_example USERNAME API_KEY

Contributors

License

The library is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •