Hey guys, I wrote a PHP wrapper class for the Dating Gold API to allow you to automatically register free users on both AmateurMatch.com and WebcamClub.com When they fill out the form on your site to register.
I am selling copies of the unencoded class along with free upgrades for $100, and also will integrate it into your existing PHP based site for an aditional $50.
A small example of how it works.
PHP Code:
<?php
require 'classes/datinggoldapi.class.php';
$DatingGoldAPI = new DatingGoldAPI(array('username' => $username,
'email' => $email,
'country' => $country,
'password' => $password,
'gender' => ($gender == 'male') ? 2 : 1,
'birthday' => $bday_year.'-'.$bday_day.'-'.$bday_month,
'ipaddr' => $_SERVER['REMOTE_ADDR'],
'postalcode' => $postalcode,
'terms' => 1
)
);
if($DatingGoldAPI->validEmailAddress())
{
$DatingGoldAPI->AmateurMatchRegister();
$DatingGoldAPI->WebcamClubRegister();
}
?>
That is the code I use for AVS tube script integration.
How it works is the class will automate a lot of the fields for the registration to keep your register form short and sweet, but every field can be defined by users registering, but it uses an GeoIP database to automatically grab the Country Code, Postal Code, City, and Region for each user who registers if you don't want to make them supply it themselves.
To make them add it themselves you just add onto the array in the new class section, for example:
PHP Code:
<?php
$DatingGoldAPI = new DatingGoldAPI(array('username' => $username,
'email' => $email,
'country' => $country,
'password' => $password,
'gender' => ($gender == 'male') ? 2 : 1,
'birthday' => $bday_year.'-'.$bday_day.'-'.$bday_month,
'ipaddr' => $_SERVER['REMOTE_ADDR'],
'postalcode' => $postalcode,
'terms' => 1,
'city' => $city,
'region' => $region
)
);
?>
In that example I added the city and region which the script will then ignore automating those sections.
This bit of code does the following:
PHP Code:
<?php
if($DatingGoldAPI->validEmailAddress())
{
$DatingGoldAPI->AmateurMatchRegister();
$DatingGoldAPI->WebcamClubRegister();
}
?>
First it does a check and sees if the email the user supplied is already used in their system, if it is the script does nothing in regards to signing up your user for AmateurMatch or WebcamClub. If it isn't it goes onto registering them with AmateurMatch, then WebcamClub, I made them 2 seperate functions so if you want one but not the other you can.
Currently I only accept paypal for this because I had screwed up my epass and just canceled it and had recently started the process of signing up again after being asked if I could be paid with it. So give me time to finish the process.
If you absolutely can only pay with epassporte I understand, and will find someone who can accept your epass and in exchange send me paypal, but unfortunately until I get my own epass setup, you'll be required to pay their fee for doing the service, sorry.
If anyone has any comments or questions, don't hesitate to hit me up. Weekends usually aren't a great time to get a hold of me, as I try not to work on Sat/Sunday, especially tomorrow due to Staind and Shinedown headlining my county fair's concert states and I'm gonna go check them out.