purevpn.com reseller api wrapper
C#
Latest commit f07c5ea Apr 19, 2014 @c1982 c1982 Refactor action methods
Permalink
Failed to load latest commit information.
PureVpnApi.Test
PureVpnApi
.gitattributes
.gitignore
PureVpnApi.sln
README.txt

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);
            }
        }