logoraisr
Module logoraisr
API
![](https://bcentral-packageicons.azureedge.net/images/ballerinax_logoraisr_1.5.0.png)
ballerinax/logoraisr Ballerina library
Overview
This is a generated connector from Logoraisr API v1 OpenAPI Specification. Logoraisr API provides capability to access operations related to your graphic design tasks automatically using best-in-class algorithms and artificial intelligence.
Prerequisites
Before using this connector in your Ballerina application, complete the following:
Clients![](/images/permalink.svg)
logoraisr: Client![](/images/permalink.svg)
This is a generated connector from Logoraisr API v1 OpenAPI Specification. Logoraisr API provides capability to access operations related to your graphic design tasks automatically using best-in-class algorithms and artificial intelligence.
Constructor![](/images/permalink.svg)
Gets invoked to initialize the connector
.
The connector initialization requires setting the API credentials.
Create an Logoraisr account and obtain OAuth tokens following this guide.
init (ApiKeysConfig apiKeyConfig, ConnectionConfig config, string serviceUrl)
- apiKeyConfig ApiKeysConfig - API keys for authorization
- config ConnectionConfig {} - The configurations to be used when initializing the
connector
- serviceUrl string "https://api.logoraisr.com/rest-v1" - URL of the target service
readPreviews![](/images/permalink.svg)
function readPreviews(string fileId) returns PreviewResponse|error
Gets preview image of uploaded file
Parameters
- fileId string - Id of the file for which the preview_img_url is generated.
Return Type
- PreviewResponse|error - Returns preview response or an error
listProcesses![](/images/permalink.svg)
Gets process list.
listProjects![](/images/permalink.svg)
Gets user project list.
createProject![](/images/permalink.svg)
function createProject(ProjectRequest payload) returns ProjectResponse|error
Creates a new project.
Parameters
- payload ProjectRequest - Project details
Return Type
- ProjectResponse|error - Returns project response or an error
readProjects![](/images/permalink.svg)
Gets project details.
Parameters
- projectNumber string - Number of the project.
getReports![](/images/permalink.svg)
Gets user report list.
createReport![](/images/permalink.svg)
function createReport(ReportRequest payload) returns ReportResponse|error
Creates a new report.
Parameters
- payload ReportRequest - Report request details
Return Type
- ReportResponse|error - Returns report response or an error
readReports![](/images/permalink.svg)
Gets report details.
Parameters
- reportNumber string - Report number
readResults![](/images/permalink.svg)
function readResults(string resultFileId) returns ResultResponse|error
Gets the result from image processing
Parameters
- resultFileId string - Id of the result_file for which the result_file_url is generated.
Return Type
- ResultResponse|error - Returns result from image processing or an error
Records![](/images/permalink.svg)
logoraisr: ApiKeysConfig![](/images/permalink.svg)
Provides API key configurations needed when communicating with a remote HTTP endpoint.
Fields
- authorization string - Represents API Key
Authorization
logoraisr: ClientHttp1Settings![](/images/permalink.svg)
Provides settings related to HTTP/1.x protocol.
Fields
- keepAlive KeepAlive(default http:KEEPALIVE_AUTO) - Specifies whether to reuse a connection for multiple requests
- chunking Chunking(default http:CHUNKING_AUTO) - The chunking behaviour of the request
- proxy ProxyConfig? - Proxy server related options
logoraisr: Color![](/images/permalink.svg)
Fields
- red int? - RGB-Red color value.
- green int? - RGB-Green color value.
- blue int? - RGB-Blue color value
- percentage string? - Percentage of pixels that holds this color.
- number_of_pixel int? - Number of pixels that holds this color.
- hex string? - Hex-label of this color.
logoraisr: ConnectionConfig![](/images/permalink.svg)
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings? - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings? - Configurations related to HTTP/2 protocol
- timeout decimal(default 60) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded
/x-forwarded
header
- poolConfig PoolConfiguration? - Configurations associated with request pooling
- cache CacheConfig? - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding
) header
- circuitBreaker CircuitBreakerConfig? - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig RetryConfig? - Configurations associated with retrying
- responseLimits ResponseLimitConfigs? - Configurations associated with inbound response size limits
- secureSocket ClientSecureSocket? - SSL/TLS-related options
- proxy ProxyConfig? - Proxy server related options
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
logoraisr: FileResponse![](/images/permalink.svg)
Fields
- file_id string? - Returns the file_id. To apply processes to the uploaded file, this file_id must be referenced in the API-calls.
logoraisr: PreviewResponse![](/images/permalink.svg)
Fields
- preview_img_url string? - Url from which the preview file can be downloaded.
logoraisr: Process![](/images/permalink.svg)
Fields
- processing_algorithm string - Schlüssel welcher Verarbeitungs-Algorithmus angewendet wird. Zur Auswahl stehen "logo-to-vector", "logo-super-resolution", "logo-segmentation" und "image-processing".
- resize string? - Changes the size of the image according to the specified size. Example: "resize": "200x300".
- flip boolean? - Flips the image around the horizontal axis, from top to bottom. Example: "flip": true
- mirror boolean? - Mirrors the image around the vertical axis, i.e. from right to left. Example: "mirror": true
- rotate int? - Rotates the image around the center according to the specified degree. Example: "rotate": 90
- crop string? - Crops the image according to the specified mechanism. If you specify the size "WidthexHeight", the image will be cropped centered. If coordinates "x1,y1,x2,y2" are given, the image is cropped according to the coordinates. The image will be cropped to the size of the stories if "faces" are specified as. Example Centered: "crop": "200x300". Example Region: "crop": "200,300,150,300". Example Faces: "crop": "faces".
logoraisr: Project![](/images/permalink.svg)
Fields
- id int? - Id of the created project.
- project_number int? - Number of the created project.
- file_id string? - Id of the file on which the process was applied.
- result_file_id string? - Id of the result file which the process created.
- process_id string - Process which should applied. Processes are "color-classification".
- process Process? -
- created string? - The Date when the project was created.
- project_title string? - Name of the project with which it was saved.
- paypal_payment_id string? - Id of the paypal payment.
logoraisr: ProjectRequest![](/images/permalink.svg)
Fields
- process Process? -
- file_id string - Id of the file on which the process is to be applied.
- project_title string - Name of the project with which it is saved.
logoraisr: ProjectResponse![](/images/permalink.svg)
Fields
- project_number int? - Number of the created project.
- project_id int? - Id of the created project.
- result_file_id string? - Id of the result_file. This id must be specified to create the result_file_url.
logoraisr: ProxyConfig![](/images/permalink.svg)
Proxy server configurations to be used with the HTTP client endpoint.
Fields
- host string(default "") - Host name of the proxy server
- port int(default 0) - Proxy server port
- userName string(default "") - Proxy server username
- password string(default "") - Proxy server password
logoraisr: Report![](/images/permalink.svg)
Fields
- report_number int - Number of the created report.
- created string? - The Date when the report was created.
- file_id string - Id of the file on which the report was applied.
- process_id int - Process_id of the process which was applied. Processes are "color-classification".
- result_id int - Result_id of the result which was created.
- result Result? -
logoraisr: ReportRequest![](/images/permalink.svg)
Fields
- process string - Process which should applied. Processes are "color-classification".
- file_id string - Id of the file on which the process is to be applied.
logoraisr: ReportResponse![](/images/permalink.svg)
Fields
- report_number int? - Number of the report which was created.
- created string? - The Date when the project was created.
- file_id string? - Id of the file on which the process was applied.
- processing_algorithm string? - Process which was applied. Processes are "color-classification".
- result Result? -
logoraisr: Result![](/images/permalink.svg)
Fields
- number_of_pixel_in_image int? - Number of pixel in image.
- width int? - Width of image.
- height int? - Height of image.
- colors Color[]? -
logoraisr: ResultResponse![](/images/permalink.svg)
Fields
- result_file_url string? - Url from which the result file can be downloaded.
Import
import ballerinax/logoraisr;
Metadata
Released date: over 1 year ago
Version: 1.5.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.4.1
GraalVM compatible: Yes
Pull count
Total: 0
Current verison: 0
Weekly downloads
Keywords
Content & Files/Images & Design
Cost/Paid
Contributors