Get Logo List
GET https://restapi.actonsoftware.com/api/1/logo
This endpoint allows you to download the list of logos 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}) |
Response
{ "offset": 0, "count": 1, "totalCount": 1, "result": [ { "url_str": "https://ci87.actonsoftware.com/acton/cx/a4a8/logo5.png", "url_str_ts": "https://ci87.actonsoftware.com/acton/cx/a4a8/logo5.png?ts=1567642320410", "alt_txt": "", "tool_tip": "", "target_url": "", "id": "i-4", "title": "Logo" } ] }
Code Examples
cURLPythonJava
curl -X GET https://restapi.actonsoftware.com/api/1/logo -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs"
import requests url = "https://restapi.actonsoftware.com/api/1/logo" 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(); } } }