Skip to content
purevpn.com reseller api wrapper
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
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);
            }
        }
You can’t perform that action at this time.