Description
Initiates the account creation process, causing an email to be sent to address provided.
Initiates the account creation process, causing an email to be sent to address provided.
http://api.fonts.com/rest/{format}/Accounts/
xml or json
Post
<?php
require_once('Services_WFS.php');
$services = new Services_WFS;
$apiKey = '';
$services->setCredentials(null, null, $apiKey);
$firstName = '';
$lastName = '';
$email = '';
var_dump($services->newAccount($firstName, $lastName, $email));
?>
private string CreateNewAccount(string firstName, string lastName, string emailAddress)
{
const string method = "POST";
string requestUri = "/rest/" + Format + "/Accounts/";
string data = "wfsfirst_name=" + firstName +
"&wfslast_name=" + lastName +
"&wfsemail=" + emailAddress;
//See common functions
return GetResponseWithoutAuthorization(method, requestUri, data);
}
Private Function CreateNewAccount(ByVal firstName As String, ByVal lastName As String, ByVal emailAddress As String) As String
Const method As String = "POST"
Dim requestUri As String = "/rest/" & Format & "/Accounts/"
Dim data As String = "wfsfirst_name=" & firstName & _
"&wfslast_name=" & lastName & _
"&wfsemail=" & emailAddress
'See common functions for GetResponse
Return GetResponseWithoutAuthorization(method, requestUri, data)
End Function
<Accounts>
<Message>Success</Message>
<Account>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
<Email>John@exmaple.com</Email>
</Account>
</Accounts>
{
"Accounts":{
"Account":{
"Email":"John@exmaple.com",
"FirstName":"John",
"LastName":"Doe"
},
"Message":"Success"
}
}