Skip to content

Latest commit

 

History

History
69 lines (49 loc) · 1.91 KB

File metadata and controls

69 lines (49 loc) · 1.91 KB

UsersApi

All URIs are relative to https://api.cloudsmith.io

Method HTTP request Description
usersProfileRead GET /users/profile/{slug}/ Provide a brief for the specified user (if any).

usersProfileRead

UserProfile usersProfileRead(slug)

Provide a brief for the specified user (if any).

Provide a brief for the specified user (if any).

Example

// Import classes:
//import io.cloudsmith.api.ApiClient;
//import io.cloudsmith.api.ApiException;
//import io.cloudsmith.api.Configuration;
//import io.cloudsmith.api.auth.*;
//import io.cloudsmith.api.apis.UsersApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: apikey
ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey");
apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.setApiKeyPrefix("Token");

// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");

UsersApi apiInstance = new UsersApi();
String slug = "slug_example"; // String | 
try {
    UserProfile result = apiInstance.usersProfileRead(slug);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UsersApi#usersProfileRead");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
slug String

Return type

UserProfile

Authorization

apikey, basic

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json