Skip to content

JSBizon/papapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Papapi

A gem for access to the Post Affiliate Pro API.

Getting started example

###Create session as merchant

session = new Papapi::Session("http://demo.postaffiliatepro.com/scripts/server.php");
session.login("merchant@example.com", "demo")

###Create session as affiliate in debug mode

session = new Papapi::Session("http://demo.postaffiliatepro.com/scripts/server.php",true);
session.login("affiliate@example.com", "demo")

###Get information about affiliate

affiliate = Papapi::Affiliate.new(session)
affiliate.load()
affiliate[:username]

###Get information about merchant

merchant = Papapi::Merchant.new(session)
merchant.load()
merchant[:username]

More documentation, and examples can be found there

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages