LinksGPT URL Shortener Java SDK, provides an easy way to interact with the LinksGPT API, enabling developers to build applications that leverage the power of LinksGPT's features.
LinksGPT is a professional link management platform for custom short urls, brand building and conversion optimization. It offers intelligent URL shortening and expansion, custom domains, team roles, customizable QR codes, tracking and AI-based in-depth analytics, deep linking, openAPI and enhanced link security. Powered by AI, it provides intelligent insights and recommendations based on user behavior and click patterns, support data-driven brand strategies and marketing decisions.
- API version: 1.0.0
Automatically generated by the Swagger Codegen
Building the API client library requires:
- Java 1.7+
- Maven/Gradle
To install the API client library to your local Maven repository, simply execute:
mvn clean install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deploy
Add this dependency to your project's POM:
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-java-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "io.swagger:swagger-java-client:1.0.0"
At first generate the JAR by executing:
mvn clean package
Then manually install the following JARs:
target/swagger-java-client-1.0.0.jar
target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.V1DomainsApi;
import java.io.File;
import java.util.*;
public class V1DomainsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
V1DomainsApi apiInstance = new V1DomainsApi();
String workspace = "workspace_example"; // String | Your workspace id, if you do not specify the workspace context, the default workspace (your main workspace) will be used. If apikey is used as the authentication mode, you do not need to set this parameter.
try {
InlineResponse200 result = apiInstance.listDomains(workspace);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling V1DomainsApi#listDomains");
e.printStackTrace();
}
}
}
All URIs are relative to https://app.linksgpt.com
Class | Method | HTTP request | Description |
---|---|---|---|
V1DomainsApi | listDomains | GET /api/v1/domains | List your domains |
V1LinksApi | createLink | POST /api/v1/links | Create a new link |
V1LinksApi | deleteLink | DELETE /api/v1/links/{id} | Delete a link |
V1LinksApi | getLinkById | GET /api/v1/links/{id} | Get a link |
V1LinksApi | listLinks | GET /api/v1/links | List links |
V1LinksApi | listTags | GET /api/v1/links/tags | List tags |
V1LinksApi | updateLink | PUT /api/v1/links/{id} | Update a link |
V1LinksApi | updateLinkTags | PUT /api/v1/links/{id}/tags | Update the tags |
V1UsersApi | getAccountDetails | GET /api/v1/users/me | Get account details |
- InlineResponse200
- InlineResponse2001
- InlineResponse2002
- InlineResponse2003
- InlineResponse2004
- InlineResponse2004Data
- InlineResponse2005
- InlineResponse400
- V1CreateLinkRequest
- V1DomainResource
- V1DomainResourceProvider
- V1LinkResource
- V1LinkResourceUtm
- V1ReTagRequest
- V1UpdateLinkRequest
- V1UserResource
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: apiKey
- Location: HTTP header
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.