Publish: Publish

Collapse All

URL

http://api.fonts.com/rest/{format}/Publish/

{format}

xml or json

Method

GET

Required Header Parameters

  • authorizationHashed authorization key
  • appkeyYour application’s key

Required Query String Parameters

  • None

Optional Query String Parameters

  • None

Response variables

  • PublishMessage contains if publish was success or not

Sample Code

PHP

<?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);

?>      

C#

  private string Publish()
  {

    const string method = "GET";
    const string requestUri = "/rest/" + Format + "/publish/";

    //See common functions for GetResponse
    return GetResponse(method, requestUri);

  }
       

VB.NET

  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

XML Response

<Publish>
  <PublishMessage>Success</PublishMessage>
</Publish>

json Response

{
   "Publish":{
      "PublishMessage":"Success"
   }
}