Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 1.94 KB

UsersApi.md

File metadata and controls

79 lines (49 loc) · 1.94 KB

\UsersApi

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

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

UsersProfileRead

UserProfile UsersProfileRead(ctx, slug).Execute()

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

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/cloudsmith-io/cloudsmith-api-go"
)

func main() {
	slug := "slug_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.UsersApi.UsersProfileRead(context.Background(), slug).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersProfileRead``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `UsersProfileRead`: UserProfile
	fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersProfileRead`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
slug string

Other Parameters

Other parameters are passed through a pointer to a apiUsersProfileReadRequest struct via the builder pattern

Name Type Description Notes

Return type

UserProfile

Authorization

apikey, basic

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]