URL
http://api.fonts.com/rest/{format}/Projects/
http://api.fonts.com/rest/{format}/Projects/
xml or json
GET
None
<?php
require_once('Services_WFS.php');
$services = new Services_WFS;
$apiKey = '[Your API Key]';
$publicKey = '[Your Public Key]';
$privateKey = '[Your Private Key]';
$services->setCredentials($publicKey, $privateKey, $apiKey);
var_dump($services->listProjects());
?>
private string GetProjectList(int pageStart, int pageLimit)
{
const string method = "GET";
string requestUri = "/rest/" + Format + "/projects/" +
"?wfspstart=" + pageStart +
"&wfsplimit=" + pageLimit;
//See common functions for GetResponse
return GetResponse(method, requestUri);
}
Private Function GetProjectList(ByVal pageStart As Integer, ByVal pageLimit As Integer) As String
Const method As String = "GET"
Dim requestUri As String = "/rest/" & Format & "/projects/" & _
"?wfspstart=" & pageStart & _
"&wfsplimit=" & pageLimit
'See common functions for GetResponse
Return GetResponse(method, requestUri)
End Function
<Projects>
<Message>Success</Message>
<UserId>1025405</UserId>
<UserRole>Free</UserRole>
<Project>
<ProjectName>test1</ProjectName>
<ProjectKey>9bfa8382-020d-4814-83ae-7b6da1c47202</ProjectKey>
</Project>
<Project>
<ProjectName>test2</ProjectName>
<ProjectKey>e04da95f-fe70-4f73-b3d9-d2d621472280</ProjectKey>
</Project>
<Project>
<ProjectName>test3</ProjectName>
<ProjectKey>3c86c27b-ec59-4e8e-acdd-9b89c9f13c8b</ProjectKey>
</Project>
<Project>
<ProjectName>test4</ProjectName>
<ProjectKey>81151825-c20b-44c1-8f1e-67473b8b9a37</ProjectKey>
</Project>
<TotalRecords>4</TotalRecords>
<PageStart>0</PageStart>
<PageLimit>10</PageLimit>
</Projects>
{
"Projects":{
"Message":"Success",
"PageLimit":"10",
"PageStart":"0",
"Project":[
{
"ProjectKey":"9bfa8382-020d-4814-83ae-7b6da1c47202",
"ProjectName":"test1"
},
{
"ProjectKey":"e04da95f-fe70-4f73-b3d9-d2d621472280",
"ProjectName":"test2"
},
{
"ProjectKey":"3c86c27b-ec59-4e8e-acdd-9b89c9f13c8b",
"ProjectName":"test3"
},
{
"ProjectKey":"81151825-c20b-44c1-8f1e-67473b8b9a37",
"ProjectName":"test4"
}
],
"TotalRecords":"4",
"UserId":"1025405",
"UserRole":"Free"
}
}