logoraisr
Module logoraisr
![](https://bcentral-packageicons.azureedge.net/images/ballerinax_logoraisr_1.2.1.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, ClientConfiguration clientConfig, string serviceUrl)
- apiKeyConfig ApiKeysConfig - API keys for authorization
- clientConfig ClientConfiguration {} - 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: 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: 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: 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 2 years ago
Version: 1.2.1
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.0.2
GraalVM compatible: Yes
Pull count
Total: 0
Current verison: 0
Weekly downloads
Keywords
Content & Files/Images & Design
Cost/Paid
Contributors
Dependencies