svrf-client

SVRF API client

License

License

MIT
Categories

Categories

CLI User Interface
GroupId

GroupId

com.svrf
ArtifactId

ArtifactId

svrf-client
Last Version

Last Version

1.5.0
Release Date

Release Date

Type

Type

jar
Description

Description

svrf-client
SVRF API client
Project URL

Project URL

https://github.com/Svrf/svrf-api
Source Code Management

Source Code Management

https://github.com/Svrf/svrf-java-client

Download svrf-client

How to add to project

<!-- https://jarcasting.com/artifacts/com.svrf/svrf-client/ -->
<dependency>
    <groupId>com.svrf</groupId>
    <artifactId>svrf-client</artifactId>
    <version>1.5.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.svrf/svrf-client/
implementation 'com.svrf:svrf-client:1.5.0'
// https://jarcasting.com/artifacts/com.svrf/svrf-client/
implementation ("com.svrf:svrf-client:1.5.0")
'com.svrf:svrf-client:jar:1.5.0'
<dependency org="com.svrf" name="svrf-client" rev="1.5.0">
  <artifact name="svrf-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.svrf', module='svrf-client', version='1.5.0')
)
libraryDependencies += "com.svrf" % "svrf-client" % "1.5.0"
[com.svrf/svrf-client "1.5.0"]

Dependencies

compile (6)

Group / Artifact Type Version
io.swagger : swagger-annotations jar 1.5.15
com.squareup.okhttp : okhttp jar 2.7.5
com.squareup.okhttp : logging-interceptor jar 2.7.5
com.google.code.gson : gson jar 2.8.1
io.gsonfire : gson-fire jar 1.8.0
org.threeten : threetenbp jar 1.3.5

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

svrf-client - the Java client library for the SVRF API

For more information, please visit https://github.com/svrf/svrf-api

Getting Started

SVRF's API allows you to supercharge your project or app with the first and largest search engine for immersive experiences. We make it simple for any developer to incorporate highly immersive experiences with all kinds of applications: virtual reality, augmented reality, mixed reality, mobile, and web.

The SVRF API Documentation is available at https://developers.svrf.com.

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

Installation

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>com.svrf</groupId>
  <artifactId>svrf-client</artifactId>
  <version>1.5.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.svrf:svrf-client:1.5.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/svrf-client-1.5.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import com.svrf.client.*;
import com.svrf.client.auth.*;
import com.svrf.client.model.*;
import com.svrf.client.api.AuthenticateApi;

import java.io.File;
import java.util.*;

public class AuthenticateApiExample {

    public static void main(String[] args) {
        
        AuthenticateApi apiInstance = new AuthenticateApi();
        Body body = new Body(); // Body | 
        try {
            AuthResponse result = apiInstance.authenticate(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticateApi#authenticate");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.svrf.com/v1

Class Method HTTP request Description
AuthenticateApi authenticate POST /app/authenticate Authenticate application
MediaApi getById GET /vr/{id} Media by ID Endpoint
MediaApi getTrending GET /vr/trending Trending Endpoint
MediaApi search GET /vr/search Search Endpoint

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

XAppToken

  • Type: API key
  • API key parameter name: x-app-token
  • Location: HTTP header

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

[email protected]

com.svrf

Svrf, Inc.

The search engine for AR and VR content. ๐Ÿ„โ€โ™€๐Ÿ„

Versions

Version
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0