Skip to content

Latest commit

 

History

History
138 lines (88 loc) · 3.73 KB

PDFProfileAPI.md

File metadata and controls

138 lines (88 loc) · 3.73 KB

\PDFProfileAPI

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

CreatePdfProfile

*os.File CreatePdfProfile(ctx).ProfileRequest(profileRequest).Execute()

Generate a PDF profile from a Person

Example

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)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
profileRequest ProfileRequest

Return type

*os.File

Authorization

oidcScheme, bearerScheme

HTTP request headers

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

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

PublishPdfProfile

PdfProfile PublishPdfProfile(ctx).ProfileRequest(profileRequest).Execute()

Generate a PDF profile from a Person

Example

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)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
profileRequest ProfileRequest

Return type

PdfProfile

Authorization

oidcScheme, bearerScheme

HTTP request headers

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

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