Get Operator Logos
The DT One Digital Value Services API allows you to enhance your application by displaying operator logos, providing a more informative user experience.
You can retrieve operator logos using the following URL format, in conjunction with operator information obtained from the DT One API:
The general syntax for constructing the operator logo URL.
https://operator-logo.dtone.com/logo-{operator_id}-{size_id}.{extension}The unique identifier for the operator. For details on retrieving operator information, including filtering by country, service, or subservice, refer to the Operators documentation and its child topics.
The identifier for the desired logo image size:
- 1: 100 pixels
- 2: 125 pixels
- 3: 150 pixels
The file extension of the logo image. Supported extensions are png and jpg.
Example of a complete URL to retrieve a 125-pixel PNG logo for operator with ID 1310.
https://operator-logo.dtone.com/logo-1310-2.png- Obtain the
operator_id: Use the Operators endpoint to retrieve theoperator_idfor the relevant operator. - Construct the Logo URL: Dynamically build the logo URL in your code, replacing the placeholders with the appropriate values.
- Display the Logo: Render the image using standard techniques for your platform (e.g.,
<img >tag in web applications). - Handle Potential Errors: Implement error handling (e.g., using HTTP status codes like 404) to manage cases where a logo is not available. See the Status and Errors section of the API documentation.
- API Authentication: Ensure proper authentication as described in the Authentication section.
- Operator Data: Always refer to the Operators endpoint and its associated documentation for the most accurate and up-to-date operator information.
Updated over 1 year ago