All URIs are relative to https://yasm.prodyna.com:443/api/v1
Method | HTTP request | Description |
---|---|---|
GeneratePdfProfile | Post /pdf-profile | Generate a PDF profile from a Person |
*os.File GeneratePdfProfile(ctx).ProfileRequest(profileRequest).Execute()
Generate a PDF profile from a Person
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/prodyna-yasm/yasm-api-go"
)
func main() {
profileRequest := *openapiclient.NewProfileRequest() // ProfileRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PDFProfileAPI.GeneratePdfProfile(context.Background()).ProfileRequest(profileRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PDFProfileAPI.GeneratePdfProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GeneratePdfProfile`: *os.File
fmt.Fprintf(os.Stdout, "Response from `PDFProfileAPI.GeneratePdfProfile`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGeneratePdfProfileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
profileRequest | ProfileRequest |
- Content-Type: application/json
- Accept: application/octet-stream, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]