Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.79 KB

File metadata and controls

73 lines (46 loc) · 1.79 KB

\AuthenticationApi

All URIs are relative to https://app.corellium.com/api

Method HTTP request Description
V1AuthLogin Post /v1/auth/login Log In

V1AuthLogin

Token V1AuthLogin(ctx).Body(body).Execute()

Log In

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/aimoda/go-corellium-api-client"
)

func main() {
    body := map[string]interface{}{ ... } // map[string]interface{} | Authorization data ( Credentials|ApiToken )

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

Path Parameters

Other Parameters

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

Name Type Description Notes
body map[string]interface{} Authorization data ( Credentials ApiToken )

Return type

Token

Authorization

No authorization required

HTTP request headers

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

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