Get a Logo
GET https://restapi.actonsoftware.com/api/1/logo/{id}
This endpoint allows you to pull a specific logo from the account.
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
Authorization | Header | False | Required | String | Insert your generated access token. ("Bearer {access token}") |
id | Path | False | Required | String | Specify the ID of the logo. |
Response
{ "url_str": "https://ci87.actonsoftware.com/acton/cx/a4a8/logo5.png", "url_str_ts": "https://ci87.actonsoftware.com/acton/cx/a4a8/logo5.png?ts=1568154476801", "alt_txt": "", "tool_tip": "", "target_url": "", "id": "i-4", "title": "Logo" }
Code Examples
cURLPythonJava
curl -X GET https://restapi.actonsoftware.com/api/1/logo/i-4 -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs"
import requests url = "https://restapi.actonsoftware.com/api/1/logo/i-4" payload = {} headers = { 'Authorization': 'Bearer 12345678-9abc-defg-hijk-lmnopqrs' } response = requests.request("GET", url, headers=headers, data = payload) print(response.text.encode('utf8'))
package content; import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.JsonNode; import com.mashape.unirest.http.Unirest; import com.mashape.unirest.http.exceptions.UnirestException; import org.json.JSONObject; import util.Utility; public class GetLogoExample { static String BASE_URL = "https://restapi.actonsoftware.com/"; public static void main(String[] args) { getLogo(); getLogoById(); } public static void getLogo(){ try { String accessToken = Utility.getAccessToken(); Unirest.setHttpClient(Utility.makeClient()); Unirest.setDefaultHeader("Authorization", "Bearer " + accessToken); HttpResponse<JsonNode> jsonResponse = Unirest.get(BASE_URL + "api/1/logo") .header("accept", "application/json") .asJson(); if(jsonResponse.getCode()==200){ JSONObject jsonResponseBody = jsonResponse.getBody().getObject(); System.out.println("The response body is : "+jsonResponseBody ); }else { System.out.println("The response is : "+ jsonResponse); } } catch (UnirestException e) { e.printStackTrace(); } } public static void getLogoById(){ try { String accessToken = Utility.getAccessToken(); Unirest.setHttpClient(Utility.makeClient()); // provide logoid String id = "<Provide Logo Id>"; Unirest.setHttpClient(Utility.makeClient()); Unirest.setDefaultHeader("Authorization", "Bearer " +accessToken ); HttpResponse jsonResponse = Unirest.get(BASE_URL + "api/1/logo/"+id) .header("accept", "application/json") .asJson(); if(jsonResponse.getCode()==200){ JSONObject jsonResponseBody = ((JsonNode)jsonResponse.getBody()).getObject(); System.out.println("The response body is : "+jsonResponseBody ); }else { System.out.println("The response is : "+ jsonResponse); } } catch (UnirestException e) { e.printStackTrace(); } } }