All URIs are relative to https://yasm.prodyna.com:443/api/graph/v1
Method | HTTP request | Description |
---|---|---|
CreatePdfProfile | Post /pdf-profile/create | Generate a PDF profile from a Person |
PublishPdfProfile | Post /pdf-profile/publish | Generate a PDF profile from a Person |
*os.File CreatePdfProfile(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.CreatePdfProfile(context.Background()).ProfileRequest(profileRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PDFProfileAPI.CreatePdfProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreatePdfProfile`: *os.File
fmt.Fprintf(os.Stdout, "Response from `PDFProfileAPI.CreatePdfProfile`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreatePdfProfileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
profileRequest | ProfileRequest |
- Content-Type: application/json
- Accept: application/pdf, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PdfProfile PublishPdfProfile(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.PublishPdfProfile(context.Background()).ProfileRequest(profileRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PDFProfileAPI.PublishPdfProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PublishPdfProfile`: PdfProfile
fmt.Fprintf(os.Stdout, "Response from `PDFProfileAPI.PublishPdfProfile`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiPublishPdfProfileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
profileRequest | ProfileRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]