Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

23 Commits

Repository files navigation

osdujava

A simple java client for the OSDU data platform.

SimpleOsduClient

BYOT: Bring your own token. Great for backend service or business logic that supplements a front-end application.

This client assumes you are obtaining a token yourself (e.g. via your application's login form or otheer mechanism. With this SimpleOsduClient, you simply provide that token. With this simplicity, you are also then responsible for refreshing the token as needed and re-instantiating the client with the new token.

Currently supported methods

Usage

Stringurl = "base_url";
StringdataPartition = "dataparition";
Stringtoken = "token_string_value_to_access_osdu"; varclient = newOsduSimpleClient(url, dataPartition, token);
varservice = newOsduService(client);

or

Stringurl = "base_url";
StringdataPartition = "dataparition";
StringawsRegion = "token_string_value_to_access_osdu"; StringcognitoClientId = "cognito_client_id";
Stringusername = "username";
Stringpassword = "password";
varclient = newOsduAWSClient(url, dataPartition, awsRegion, cognitoClientId, username, password);
varservice = newOsduService(client);

Using the service

Below are just a few usage examples.

Search for records by query

JSONObjectresp = service.Search.V2.Search(query); System.out.println(resp.toString(4));

Get signed URL

JSONObjectsignedURL = service.Delivery.V2.GetSignedUrlsFromSrns(["srn", "srn"]);
System.out.println(signedURL.toString(4));

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages