URL
http://api.fonts.com/rest/{format}/FilterValues/
http://api.fonts.com/rest/{format}/FilterValues/
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('classification' => '51431',
'foundry' => '185289');
var_dump($services->getLibraryFilterChoices('designer', $search));
var_dump($result);
?>
private string GetListLibraryFilterChoice(string filterType, string classificationId, string designerId, string foundryId, string languageId)
{
const string method = "GET";
string requestUri = "/rest/" + Format + "/FilterValues/" +
"?wfsfiltertype=" + filterType +
"&wfsclassificationid=" + classificationId +
"&wfsdesignerid=" + designerId +
"&wfsfoundryid=" + foundryId +
"&wfslanguageid=" + languageId;
//See common functions for GetResponse
return GetResponse(method, requestUri);
}
Private Function GetListLibraryFilterChoice(ByVal filterType As String, ByVal classificationId As String, ByVal designerId As String,
ByVal foundryId As String, ByVal languageId As String) As String
Const method As String = "GET"
Dim requestUri As String = "/rest/" & Format & "/FilterValues/" & _
"?wfsfiltertype=" & filterType & _
"&wfsclassificationid=" & classificationId & _
"&wfsdesignerid=" & designerId & _
"&wfsfoundryid=" & foundryId & _
"&wfslanguageid=" & languageId
'See common functions for GetResponse
Return GetResponse(method, requestUri)
End Function
<FilterValues>
<Message>Success</Message>
<FilterName>language</FilterName>
<ClassificationAssociated>0</ClassificationAssociated>
<DesignerAssociated>0</DesignerAssociated>
<FoundryAssociated>0</FoundryAssociated>
<FilterValue>
<ValueID>Arabic</ValueID>
<ValueName>Arabic</ValueName>
<FontCount>45</FontCount>
</FilterValue>
<FilterValue>
<ValueID>Armenian</ValueID>
<ValueName>Armenian</ValueName>
<FontCount>4</FontCount>
</FilterValue>
<FilterValue>
<ValueID>Cyrillic</ValueID>
<ValueName>Cyrillic</ValueName>
<FontCount>239</FontCount>
</FilterValue>
<FilterValue>
<ValueID>Symbol</ValueID>
<ValueName>Symbol</ValueName>
<FontCount>96</FontCount>
</FilterValue>
<FilterValue>
<ValueID>Thai</ValueID>
<ValueName>Thai</ValueName>
<FontCount>4</FontCount>
</FilterValue>
</FilterValues>
{
"FilterValues":{
"ClassificationAssociated":"0",
"DesignerAssociated":"0",
"FilterName":"language",
"FilterValue":[
{
"FontCount":"45",
"ValueID":"Arabic",
"ValueName":"Arabic"
},
{
"FontCount":"4",
"ValueID":"Armenian",
"ValueName":"Armenian"
},
{
"FontCount":"239",
"ValueID":"Cyrillic",
"ValueName":"Cyrillic"
},
{
"FontCount":"96",
"ValueID":"Symbol",
"ValueName":"Symbol"
},
{
"FontCount":"4",
"ValueID":"Thai",
"ValueName":"Thai"
}
],
"FoundryAssociated":"0",
"Message":"Success"
}
}