URL
http://api.fonts.com/rest/{format}/AllFilterValues/
http://api.fonts.com/rest/{format}/AllFilterValues/
xml or json
GET
<?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);
$search = array('language' => 'Arabic',
'letter' => 'Z');
$result = $services->getAllLibraryFilterChoices($search);
var_dump($result);
?>
private static string ListAllFilters(string classificationId, string designerId, string founryId, string languageId, string alphachar, string freeorpaid)
{
const string method = "GET";
string requestUri = "/rest/" + Format + "/AllFilterValues/" +
"?&wfsclassificationid=" + classificationId +
"&wfsdesignerid=" + designerId +
"&wfsfoundryid=" + founryId +
"&wfslanguageid=" + languageId +
"&wfsalphachar=" + alphachar +
"&wfsfreeorpaid=" + freeorpaid;
//See common functions for GetResponse
return GetResponse(method, requestUri);
}
Private Function ListAllFilters(ByVal classificationId As String, ByVal designerId As String,
ByVal founryId As String, ByVal languageId As String,
ByVal alphachar As String, ByVal freeorpaid As String) As String
Const method As String = "GET"
Dim requestUri As String = "/rest/" & Format & "/AllFilterValues/" & _
"?&wfsclassificationid=" & classificationId & _
"&wfsdesignerid=" & designerId & _
"&wfsfoundryid=" & founryId & _
"&wfslanguageid=" & languageId & _
"&wfsalphachar=" & alphachar & _
"&wfsfreeorpaid=" & freeorpaid
'See common functions for GetResponse
Return GetResponse(method, requestUri)
End Function
<FilterValues>
<Message>Success</Message>
<ClassificationAssociated>0</ClassificationAssociated>
<DesignerAssociated>0</DesignerAssociated>
<FoundryAssociated>0</FoundryAssociated>
<LanguageAssociated>W26</LanguageAssociated>
<StartCharacterAssociated>A</StartCharacterAssociated>
<FreeOrPaid>0</FreeOrPaid>
<FilterValue>
<ValueID>Symbol</ValueID>
<ValueName>Symbol</ValueName>
<FontCount>1</FontCount>
<FilterType>Language</FilterType>
</FilterValue>
<FilterValue>
<ValueID>Latin</ValueID>
<ValueName>Latin</ValueName>
<FontCount>177</FontCount>
<FilterType>Language</FilterType>
</FilterValue>
<FilterValue>
<ValueID>Arabic</ValueID>
<ValueName>Arabic</ValueName>
<FontCount>1</FontCount>
<FilterType>Language</FilterType>
</FilterValue>
<FilterValue>
<ValueID>H</ValueID>
<ValueName>H</ValueName>
<FontCount>4</FontCount>
<FilterType>Alpha</FilterType>
</FilterValue>
<FilterValue>
<ValueID>-1</ValueID>
<ValueName>All</ValueName>
<FontCount>172</FontCount>
<FilterType>FreeOrPaid</FilterType>
</FilterValue>
</FilterValues>
{
"FilterValues":{
"ClassificationAssociated":"0",
"DesignerAssociated":"0",
"FilterValue":[
{
"FilterType":"Language",
"FontCount":"1",
"ValueID":"Symbol",
"ValueName":"Symbol"
},
{
"FilterType":"Language",
"FontCount":"177",
"ValueID":"Latin",
"ValueName":"Latin"
},
{
"FilterType":"Language",
"FontCount":"1",
"ValueID":"Arabic",
"ValueName":"Arabic"
},
{
"FilterType":"Alpha",
"FontCount":"4",
"ValueID":"H",
"ValueName":"H"
},
{
"FilterType":"FreeOrPaid",
"FontCount":"172",
"ValueID":"-1",
"ValueName":"All"
}
],
"FoundryAssociated":"0",
"FreeOrPaid":"0",
"LanguageAssociated":"W26",
"Message":"Success",
"StartCharacterAssociated":"A"
}
}