purevpn.com reseller api wrapper
C#
Switch branches/tags
Nothing to show
Clone or download
Latest commit f07c5ea Apr 19, 2014
Permalink
Failed to load latest commit information.
PureVpnApi.Test Refactor action methods Apr 19, 2014
PureVpnApi Refactor action methods Apr 19, 2014
.gitattributes First Commit Apr 19, 2014
.gitignore First Commit Apr 19, 2014
PureVpnApi.sln First Commit Apr 19, 2014
README.txt Refactor action methods Apr 19, 2014

README.txt

PureVPN API Wrapper for MaestroPanel PureVPN Module


Reference:
http://www.purevpn.com/purevpn-api.php


Usage:

Create standard new vpn user 90 days.

        public void CreateUser()
        {
            var result = new VpnRequest()
                            .Authentication("apiUserName", "apiPassword")
                            .Package("STANDARD")
                            .Period(90)
                            .Create(); 


            if (result.Result == 1)
            {
                Console.WriteLine("VPN User Created");
                Console.WriteLine("User: {0}", result.User);
                Console.WriteLine("Pass: {0}", result.Password);
            }
        }