URL
http://api.fonts.com/rest/{format}/Publish/
http://api.fonts.com/rest/{format}/Publish/
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);
$my_project_name = '[project name]';
$projectKey = $wfs->getProjectKeyByName($my_project_name);
$services->setProjectKey($projectKey);
$result = $services->publish();
var_dump($result);
?>
private string Publish()
{
const string method = "GET";
const string requestUri = "/rest/" + Format + "/publish/";
//See common functions for GetResponse
return GetResponse(method, requestUri);
}
Private Function Publish() As String
Const method As String = "GET"
Const requestUri As String = "/rest/" & Format & "/publish/"
'See common functions for GetResponse
Return GetResponse(method, requestUri)
End Function
<Publish> <PublishMessage>Success</PublishMessage> </Publish>
{
"Publish":{
"PublishMessage":"Success"
}
}