go get github.com/unified-to/unified-go-sdk
package main
import (
"context"
unifiedgosdk "github.com/unified-to/unified-go-sdk"
"github.com/unified-to/unified-go-sdk/pkg/models/operations"
"log"
)
func main() {
s := unifiedgosdk.New()
request := operations.CreateAccountingAccountRequest{
ConnectionID: "<value>",
}
ctx := context.Background()
res, err := s.Accounting.CreateAccountingAccount(ctx, request)
if err != nil {
log.Fatal(err)
}
if res.AccountingAccount != nil {
// handle response
}
}
- CreateAccountingAccount - Create an account
- CreateAccountingContact - Create a contact
- CreateAccountingInvoice - Create an invoice
- CreateAccountingJournal - Create a journal
- CreateAccountingTaxrate - Create a taxrate
- CreateAccountingTransaction - Create a transaction
- GetAccountingAccount - Retrieve an account
- GetAccountingContact - Retrieve a contact
- GetAccountingInvoice - Retrieve an invoice
- GetAccountingJournal - Retrieve a journal
- GetAccountingOrganization - Retrieve an organization
- GetAccountingTaxrate - Retrieve a taxrate
- GetAccountingTransaction - Retrieve a transaction
- ListAccountingAccounts - List all accounts
- ListAccountingContacts - List all contacts
- ListAccountingInvoices - List all invoices
- ListAccountingJournals - List all journals
- ListAccountingOrganizations - List all organizations
- ListAccountingTaxrates - List all taxrates
- ListAccountingTransactions - List all transactions
- PatchAccountingAccount - Update an account
- PatchAccountingContact - Update a contact
- PatchAccountingInvoice - Update an invoice
- PatchAccountingJournal - Update a journal
- PatchAccountingTaxrate - Update a taxrate
- PatchAccountingTransaction - Update a transaction
- RemoveAccountingAccount - Remove an account
- RemoveAccountingContact - Remove a contact
- RemoveAccountingInvoice - Remove an invoice
- RemoveAccountingJournal - Remove a journal
- RemoveAccountingTaxrate - Remove a taxrate
- RemoveAccountingTransaction - Remove a transaction
- UpdateAccountingAccount - Update an account
- UpdateAccountingContact - Update a contact
- UpdateAccountingInvoice - Update an invoice
- UpdateAccountingJournal - Update a journal
- UpdateAccountingTaxrate - Update a taxrate
- UpdateAccountingTransaction - Update a transaction
- CreateAccountingAccount - Create an account
- GetAccountingAccount - Retrieve an account
- ListAccountingAccounts - List all accounts
- PatchAccountingAccount - Update an account
- RemoveAccountingAccount - Remove an account
- UpdateAccountingAccount - Update an account
- CreateAccountingContact - Create a contact
- CreateCrmContact - Create a contact
- CreateUcContact - Create a contact
- GetAccountingContact - Retrieve a contact
- GetCrmContact - Retrieve a contact
- GetUcContact - Retrieve a contact
- ListAccountingContacts - List all contacts
- ListCrmContacts - List all contacts
- ListUcContacts - List all contacts
- PatchAccountingContact - Update a contact
- PatchCrmContact - Update a contact
- PatchUcContact - Update a contact
- RemoveAccountingContact - Remove a contact
- RemoveCrmContact - Remove a contact
- RemoveUcContact - Remove a contact
- UpdateAccountingContact - Update a contact
- UpdateCrmContact - Update a contact
- UpdateUcContact - Update a contact
- CreateAccountingInvoice - Create an invoice
- GetAccountingInvoice - Retrieve an invoice
- ListAccountingInvoices - List all invoices
- PatchAccountingInvoice - Update an invoice
- RemoveAccountingInvoice - Remove an invoice
- UpdateAccountingInvoice - Update an invoice
- CreateAccountingJournal - Create a journal
- GetAccountingJournal - Retrieve a journal
- ListAccountingJournals - List all journals
- PatchAccountingJournal - Update a journal
- RemoveAccountingJournal - Remove a journal
- UpdateAccountingJournal - Update a journal
- GetAccountingOrganization - Retrieve an organization
- ListAccountingOrganizations - List all organizations
- CreateAccountingTaxrate - Create a taxrate
- GetAccountingTaxrate - Retrieve a taxrate
- ListAccountingTaxrates - List all taxrates
- PatchAccountingTaxrate - Update a taxrate
- RemoveAccountingTaxrate - Remove a taxrate
- UpdateAccountingTaxrate - Update a taxrate
- CreateAccountingTransaction - Create a transaction
- GetAccountingTransaction - Retrieve a transaction
- ListAccountingTransactions - List all transactions
- PatchAccountingTransaction - Update a transaction
- RemoveAccountingTransaction - Remove a transaction
- UpdateAccountingTransaction - Update a transaction
- CreateAtsActivity - Create an activity
- CreateAtsApplication - Create an application
- CreateAtsCandidate - Create a candidate
- CreateAtsDocument - Create a document
- CreateAtsInterview - Create an interview
- CreateAtsJob - Create a job
- CreateAtsScorecard - Create a scorecard
- GetAtsActivity - Retrieve an activity
- GetAtsApplication - Retrieve an application
- GetAtsCandidate - Retrieve a candidate
- GetAtsCompany - Retrieve a company
- GetAtsDocument - Retrieve a document
- GetAtsInterview - Retrieve an interview
- GetAtsJob - Retrieve a job
- GetAtsScorecard - Retrieve a scorecard
- ListAtsActivities - List all activities
- ListAtsApplications - List all applications
- ListAtsApplicationstatuses - List all applicationstatuses
- ListAtsCandidates - List all candidates
- ListAtsCompanies - List all companies
- ListAtsDocuments - List all documents
- ListAtsInterviews - List all interviews
- ListAtsJobs - List all jobs
- ListAtsScorecards - List all scorecards
- PatchAtsActivity - Update an activity
- PatchAtsApplication - Update an application
- PatchAtsCandidate - Update a candidate
- PatchAtsDocument - Update a document
- PatchAtsInterview - Update an interview
- PatchAtsJob - Update a job
- PatchAtsScorecard - Update a scorecard
- RemoveAtsActivity - Remove an activity
- RemoveAtsApplication - Remove an application
- RemoveAtsCandidate - Remove a candidate
- RemoveAtsDocument - Remove a document
- RemoveAtsInterview - Remove an interview
- RemoveAtsJob - Remove a job
- RemoveAtsScorecard - Remove a scorecard
- UpdateAtsActivity - Update an activity
- UpdateAtsApplication - Update an application
- UpdateAtsCandidate - Update a candidate
- UpdateAtsDocument - Update a document
- UpdateAtsInterview - Update an interview
- UpdateAtsJob - Update a job
- UpdateAtsScorecard - Update a scorecard
- CreateAtsActivity - Create an activity
- GetAtsActivity - Retrieve an activity
- ListAtsActivities - List all activities
- PatchAtsActivity - Update an activity
- RemoveAtsActivity - Remove an activity
- UpdateAtsActivity - Update an activity
- CreateAtsApplication - Create an application
- GetAtsApplication - Retrieve an application
- ListAtsApplications - List all applications
- PatchAtsApplication - Update an application
- RemoveAtsApplication - Remove an application
- UpdateAtsApplication - Update an application
- ListAtsApplicationstatuses - List all applicationstatuses
- CreateAtsCandidate - Create a candidate
- GetAtsCandidate - Retrieve a candidate
- ListAtsCandidates - List all candidates
- PatchAtsCandidate - Update a candidate
- RemoveAtsCandidate - Remove a candidate
- UpdateAtsCandidate - Update a candidate
- CreateCrmCompany - Create a company
- CreateHrisCompany - Create a company
- GetAtsCompany - Retrieve a company
- GetCrmCompany - Retrieve a company
- GetHrisCompany - Retrieve a company
- ListAtsCompanies - List all companies
- ListCrmCompanies - List all companies
- ListEnrichCompanies - Retrieve enrichment information for a company
- ListHrisCompanies - List all companies
- PatchCrmCompany - Update a company
- PatchHrisCompany - Update a company
- RemoveCrmCompany - Remove a company
- RemoveHrisCompany - Remove a company
- UpdateCrmCompany - Update a company
- UpdateHrisCompany - Update a company
- CreateAtsDocument - Create a document
- GetAtsDocument - Retrieve a document
- ListAtsDocuments - List all documents
- PatchAtsDocument - Update a document
- RemoveAtsDocument - Remove a document
- UpdateAtsDocument - Update a document
- CreateAtsInterview - Create an interview
- GetAtsInterview - Retrieve an interview
- ListAtsInterviews - List all interviews
- PatchAtsInterview - Update an interview
- RemoveAtsInterview - Remove an interview
- UpdateAtsInterview - Update an interview
- CreateAtsJob - Create a job
- GetAtsJob - Retrieve a job
- ListAtsJobs - List all jobs
- PatchAtsJob - Update a job
- RemoveAtsJob - Remove a job
- UpdateAtsJob - Update a job
- CreateAtsScorecard - Create a scorecard
- GetAtsScorecard - Retrieve a scorecard
- ListAtsScorecards - List all scorecards
- PatchAtsScorecard - Update a scorecard
- RemoveAtsScorecard - Remove a scorecard
- UpdateAtsScorecard - Update a scorecard
- CreateCommerceCollection - Create a collection
- CreateCommerceInventory - Create an inventory
- CreateCommerceItem - Create an item
- CreateCommerceLocation - Create a location
- GetCommerceCollection - Retrieve a collection
- GetCommerceInventory - Retrieve an inventory
- GetCommerceItem - Retrieve an item
- GetCommerceLocation - Retrieve a location
- ListCommerceCollections - List all collections
- ListCommerceInventories - List all inventories
- ListCommerceItems - List all items
- ListCommerceLocations - List all locations
- PatchCommerceCollection - Update a collection
- PatchCommerceInventory - Update an inventory
- PatchCommerceItem - Update an item
- PatchCommerceLocation - Update a location
- RemoveCommerceCollection - Remove a collection
- RemoveCommerceInventory - Remove an inventory
- RemoveCommerceItem - Remove an item
- RemoveCommerceLocation - Remove a location
- UpdateCommerceCollection - Update a collection
- UpdateCommerceInventory - Update an inventory
- UpdateCommerceItem - Update an item
- UpdateCommerceLocation - Update a location
- CreateCommerceCollection - Create a collection
- GetCommerceCollection - Retrieve a collection
- ListCommerceCollections - List all collections
- PatchCommerceCollection - Update a collection
- RemoveCommerceCollection - Remove a collection
- UpdateCommerceCollection - Update a collection
- CreateCommerceInventory - Create an inventory
- GetCommerceInventory - Retrieve an inventory
- ListCommerceInventories - List all inventories
- PatchCommerceInventory - Update an inventory
- RemoveCommerceInventory - Remove an inventory
- UpdateCommerceInventory - Update an inventory
- CreateCommerceItem - Create an item
- GetCommerceItem - Retrieve an item
- ListCommerceItems - List all items
- PatchCommerceItem - Update an item
- RemoveCommerceItem - Remove an item
- UpdateCommerceItem - Update an item
- CreateCommerceLocation - Create a location
- CreateHrisLocation - Create a location
- GetCommerceLocation - Retrieve a location
- GetHrisLocation - Retrieve a location
- ListCommerceLocations - List all locations
- ListHrisLocations - List all locations
- PatchCommerceLocation - Update a location
- PatchHrisLocation - Update a location
- RemoveCommerceLocation - Remove a location
- RemoveHrisLocation - Remove a location
- UpdateCommerceLocation - Update a location
- UpdateHrisLocation - Update a location
- CreateCrmCompany - Create a company
- CreateCrmContact - Create a contact
- CreateCrmDeal - Create a deal
- CreateCrmEvent - Create an event
- CreateCrmLead - Create a lead
- CreateCrmPipeline - Create a pipeline
- GetCrmCompany - Retrieve a company
- GetCrmContact - Retrieve a contact
- GetCrmDeal - Retrieve a deal
- GetCrmEvent - Retrieve an event
- GetCrmLead - Retrieve a lead
- GetCrmPipeline - Retrieve a pipeline
- ListCrmCompanies - List all companies
- ListCrmContacts - List all contacts
- ListCrmDeals - List all deals
- ListCrmEvents - List all events
- ListCrmLeads - List all leads
- ListCrmPipelines - List all pipelines
- PatchCrmCompany - Update a company
- PatchCrmContact - Update a contact
- PatchCrmDeal - Update a deal
- PatchCrmEvent - Update an event
- PatchCrmLead - Update a lead
- PatchCrmPipeline - Update a pipeline
- RemoveCrmCompany - Remove a company
- RemoveCrmContact - Remove a contact
- RemoveCrmDeal - Remove a deal
- RemoveCrmEvent - Remove an event
- RemoveCrmLead - Remove a lead
- RemoveCrmPipeline - Remove a pipeline
- UpdateCrmCompany - Update a company
- UpdateCrmContact - Update a contact
- UpdateCrmDeal - Update a deal
- UpdateCrmEvent - Update an event
- UpdateCrmLead - Update a lead
- UpdateCrmPipeline - Update a pipeline
- CreateCrmDeal - Create a deal
- GetCrmDeal - Retrieve a deal
- ListCrmDeals - List all deals
- PatchCrmDeal - Update a deal
- RemoveCrmDeal - Remove a deal
- UpdateCrmDeal - Update a deal
- CreateCrmEvent - Create an event
- GetCrmEvent - Retrieve an event
- ListCrmEvents - List all events
- PatchCrmEvent - Update an event
- RemoveCrmEvent - Remove an event
- UpdateCrmEvent - Update an event
- CreateCrmLead - Create a lead
- GetCrmLead - Retrieve a lead
- ListCrmLeads - List all leads
- PatchCrmLead - Update a lead
- RemoveCrmLead - Remove a lead
- UpdateCrmLead - Update a lead
- CreateCrmPipeline - Create a pipeline
- GetCrmPipeline - Retrieve a pipeline
- ListCrmPipelines - List all pipelines
- PatchCrmPipeline - Update a pipeline
- RemoveCrmPipeline - Remove a pipeline
- UpdateCrmPipeline - Update a pipeline
- ListEnrichCompanies - Retrieve enrichment information for a company
- ListEnrichPeople - Retrieve enrichment information for a person
- ListEnrichPeople - Retrieve enrichment information for a person
- CreateGenaiPrompt - Create a prompt
- ListGenaiModels - List all models
- ListGenaiModels - List all models
- CreateGenaiPrompt - Create a prompt
- CreateHrisCompany - Create a company
- CreateHrisEmployee - Create an employee
- CreateHrisGroup - Create a group
- CreateHrisLocation - Create a location
- GetHrisCompany - Retrieve a company
- GetHrisEmployee - Retrieve an employee
- GetHrisGroup - Retrieve a group
- GetHrisLocation - Retrieve a location
- GetHrisPayslip - Retrieve a payslip
- GetHrisTimeoff - Retrieve a timeoff
- ListHrisCompanies - List all companies
- ListHrisEmployees - List all employees
- ListHrisGroups - List all groups
- ListHrisLocations - List all locations
- ListHrisPayslips - List all payslips
- ListHrisTimeoffs - List all timeoffs
- PatchHrisCompany - Update a company
- PatchHrisEmployee - Update an employee
- PatchHrisGroup - Update a group
- PatchHrisLocation - Update a location
- RemoveHrisCompany - Remove a company
- RemoveHrisEmployee - Remove an employee
- RemoveHrisGroup - Remove a group
- RemoveHrisLocation - Remove a location
- UpdateHrisCompany - Update a company
- UpdateHrisEmployee - Update an employee
- UpdateHrisGroup - Update a group
- UpdateHrisLocation - Update a location
- CreateHrisEmployee - Create an employee
- GetHrisEmployee - Retrieve an employee
- ListHrisEmployees - List all employees
- PatchHrisEmployee - Update an employee
- RemoveHrisEmployee - Remove an employee
- UpdateHrisEmployee - Update an employee
- CreateHrisGroup - Create a group
- GetHrisGroup - Retrieve a group
- ListHrisGroups - List all groups
- PatchHrisGroup - Update a group
- RemoveHrisGroup - Remove a group
- UpdateHrisGroup - Update a group
- GetHrisPayslip - Retrieve a payslip
- ListHrisPayslips - List all payslips
- GetHrisTimeoff - Retrieve a timeoff
- ListHrisTimeoffs - List all timeoffs
- CreateKmsPage - Create a page
- CreateKmsSpace - Create a space
- GetKmsPage - Retrieve a page
- GetKmsSpace - Retrieve a space
- ListKmsPages - List all pages
- ListKmsSpaces - List all spaces
- PatchKmsPage - Update a page
- PatchKmsSpace - Update a space
- RemoveKmsPage - Remove a page
- RemoveKmsSpace - Remove a space
- UpdateKmsPage - Update a page
- UpdateKmsSpace - Update a space
- CreateKmsPage - Create a page
- GetKmsPage - Retrieve a page
- ListKmsPages - List all pages
- PatchKmsPage - Update a page
- RemoveKmsPage - Remove a page
- UpdateKmsPage - Update a page
- CreateKmsSpace - Create a space
- GetKmsSpace - Retrieve a space
- ListKmsSpaces - List all spaces
- PatchKmsSpace - Update a space
- RemoveKmsSpace - Remove a space
- UpdateKmsSpace - Update a space
- CreateMartechList - Create a list
- CreateMartechMember - Create a member
- GetMartechList - Retrieve a list
- GetMartechMember - Retrieve a member
- ListMartechLists - List all lists
- ListMartechMembers - List all members
- PatchMartechList - Update a list
- PatchMartechMember - Update a member
- RemoveMartechList - Remove a list
- RemoveMartechMember - Remove a member
- UpdateMartechList - Update a list
- UpdateMartechMember - Update a member
- CreateMartechList - Create a list
- GetMartechList - Retrieve a list
- ListMartechLists - List all lists
- PatchMartechList - Update a list
- RemoveMartechList - Remove a list
- UpdateMartechList - Update a list
- CreateMartechMember - Create a member
- GetMartechMember - Retrieve a member
- ListMartechMembers - List all members
- PatchMartechMember - Update a member
- RemoveMartechMember - Remove a member
- UpdateMartechMember - Update a member
- CreateMessagingMessage - Create a message
- GetMessagingChannel - Retrieve a channel
- GetMessagingMessage - Retrieve a message
- ListMessagingChannels - List all channels
- ListMessagingMessages - List all messages
- PatchMessagingMessage - Update a message
- RemoveMessagingMessage - Remove a message
- UpdateMessagingMessage - Update a message
- GetMessagingChannel - Retrieve a channel
- ListMessagingChannels - List all channels
- CreateMessagingMessage - Create a message
- GetMessagingMessage - Retrieve a message
- ListMessagingMessages - List all messages
- PatchMessagingMessage - Update a message
- RemoveMessagingMessage - Remove a message
- UpdateMessagingMessage - Update a message
- CreatePassthrough - Passthrough POST
- ListPassthroughs - Passthrough GET
- PatchPassthrough - Passthrough PUT
- RemovePassthrough - Passthrough DELETE
- UpdatePassthrough - Passthrough PUT
- CreatePaymentLink - Create a link
- CreatePaymentPayment - Create a payment
- GetPaymentLink - Retrieve a link
- GetPaymentPayment - Retrieve a payment
- GetPaymentPayout - Retrieve a payout
- GetPaymentRefund - Retrieve a refund
- ListPaymentLinks - List all links
- ListPaymentPayments - List all payments
- ListPaymentPayouts - List all payouts
- ListPaymentRefunds - List all refunds
- PatchPaymentLink - Update a link
- PatchPaymentPayment - Update a payment
- RemovePaymentLink - Remove a link
- RemovePaymentPayment - Remove a payment
- UpdatePaymentLink - Update a link
- UpdatePaymentPayment - Update a payment
- CreatePaymentLink - Create a link
- GetPaymentLink - Retrieve a link
- ListPaymentLinks - List all links
- PatchPaymentLink - Update a link
- RemovePaymentLink - Remove a link
- UpdatePaymentLink - Update a link
- GetPaymentPayout - Retrieve a payout
- ListPaymentPayouts - List all payouts
- GetPaymentRefund - Retrieve a refund
- ListPaymentRefunds - List all refunds
- CreateStorageFile - Create a file
- GetStorageFile - Retrieve a file
- ListStorageFiles - List all files
- PatchStorageFile - Update a file
- RemoveStorageFile - Remove a file
- UpdateStorageFile - Update a file
- CreateStorageFile - Create a file
- GetStorageFile - Retrieve a file
- ListStorageFiles - List all files
- PatchStorageFile - Update a file
- RemoveStorageFile - Remove a file
- UpdateStorageFile - Update a file
- CreateTaskProject - Create a project
- CreateTaskTask - Create a task
- GetTaskProject - Retrieve a project
- GetTaskTask - Retrieve a task
- ListTaskProjects - List all projects
- ListTaskTasks - List all tasks
- PatchTaskProject - Update a project
- PatchTaskTask - Update a task
- RemoveTaskProject - Remove a project
- RemoveTaskTask - Remove a task
- UpdateTaskProject - Update a project
- UpdateTaskTask - Update a task
- CreateTaskProject - Create a project
- GetTaskProject - Retrieve a project
- ListTaskProjects - List all projects
- PatchTaskProject - Update a project
- RemoveTaskProject - Remove a project
- UpdateTaskProject - Update a project
- CreateTicketingCustomer - Create a customer
- CreateTicketingNote - Create a note
- CreateTicketingTicket - Create a ticket
- GetTicketingCustomer - Retrieve a customer
- GetTicketingNote - Retrieve a note
- GetTicketingTicket - Retrieve a ticket
- ListTicketingCustomers - List all customers
- ListTicketingNotes - List all notes
- ListTicketingTickets - List all tickets
- PatchTicketingCustomer - Update a customer
- PatchTicketingNote - Update a note
- PatchTicketingTicket - Update a ticket
- RemoveTicketingCustomer - Remove a customer
- RemoveTicketingNote - Remove a note
- RemoveTicketingTicket - Remove a ticket
- UpdateTicketingCustomer - Update a customer
- UpdateTicketingNote - Update a note
- UpdateTicketingTicket - Update a ticket
- CreateTicketingCustomer - Create a customer
- GetTicketingCustomer - Retrieve a customer
- ListTicketingCustomers - List all customers
- PatchTicketingCustomer - Update a customer
- RemoveTicketingCustomer - Remove a customer
- UpdateTicketingCustomer - Update a customer
- CreateTicketingNote - Create a note
- GetTicketingNote - Retrieve a note
- ListTicketingNotes - List all notes
- PatchTicketingNote - Update a note
- RemoveTicketingNote - Remove a note
- UpdateTicketingNote - Update a note
- CreateTicketingTicket - Create a ticket
- GetTicketingTicket - Retrieve a ticket
- ListTicketingTickets - List all tickets
- PatchTicketingTicket - Update a ticket
- RemoveTicketingTicket - Remove a ticket
- UpdateTicketingTicket - Update a ticket
- CreateUcContact - Create a contact
- GetUcContact - Retrieve a contact
- ListUcCalls - List all calls
- ListUcContacts - List all contacts
- PatchUcContact - Update a contact
- RemoveUcContact - Remove a contact
- UpdateUcContact - Update a contact
- ListUcCalls - List all calls
- CreateUnifiedConnection - Create connection
- CreateUnifiedWebhook - Create webhook subscription
- GetUnifiedApicall - Retrieve specific API Call by its ID
- GetUnifiedConnection - Retrieve connection
- GetUnifiedIntegrationAuth - Create connection indirectly
- GetUnifiedWebhook - Retrieve webhook by its ID
- ListUnifiedApicalls - Returns API Calls
- ListUnifiedConnections - List all connections
- ListUnifiedIntegrationWorkspaces - Returns all activated integrations in a workspace
- ListUnifiedIntegrations - Returns all integrations
- ListUnifiedIssues - List support issues
- ListUnifiedWebhooks - Returns all registered webhooks
- PatchUnifiedConnection - Update connection
- PatchUnifiedWebhookTrigger - Trigger webhook
- RemoveUnifiedConnection - Remove connection
- RemoveUnifiedWebhook - Remove webhook subscription
- UpdateUnifiedConnection - Update connection
- UpdateUnifiedWebhookTrigger - Trigger webhook
- GetUnifiedApicall - Retrieve specific API Call by its ID
- ListUnifiedApicalls - Returns API Calls
- CreateUnifiedConnection - Create connection
- GetUnifiedConnection - Retrieve connection
- ListUnifiedConnections - List all connections
- PatchUnifiedConnection - Update connection
- RemoveUnifiedConnection - Remove connection
- UpdateUnifiedConnection - Update connection
- GetUnifiedIntegrationAuth - Create connection indirectly
- ListUnifiedIntegrationWorkspaces - Returns all activated integrations in a workspace
- ListUnifiedIntegrations - Returns all integrations
- GetUnifiedIntegrationAuth - Create connection indirectly
- GetUnifiedIntegrationLogin - Sign in a user
- GetUnifiedIntegrationLogin - Sign in a user
- ListUnifiedIssues - List support issues
- CreateUnifiedWebhook - Create webhook subscription
- GetUnifiedWebhook - Retrieve webhook by its ID
- ListUnifiedWebhooks - Returns all registered webhooks
- PatchUnifiedWebhookTrigger - Trigger webhook
- RemoveUnifiedWebhook - Remove webhook subscription
- UpdateUnifiedWebhookTrigger - Trigger webhook
Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both. When specified by the OpenAPI spec document, the SDK will return the appropriate subclass.
Error Object | Status Code | Content Type |
---|---|---|
sdkerrors.SDKError | 4xx-5xx | / |
package main
import (
"context"
"errors"
unifiedgosdk "github.com/unified-to/unified-go-sdk"
"github.com/unified-to/unified-go-sdk/pkg/models/operations"
"github.com/unified-to/unified-go-sdk/pkg/models/sdkerrors"
"log"
)
func main() {
s := unifiedgosdk.New()
request := operations.CreateAccountingAccountRequest{
ConnectionID: "<value>",
}
ctx := context.Background()
res, err := s.Accounting.CreateAccountingAccount(ctx, request)
if err != nil {
var e *sdkerrors.SDKError
if errors.As(err, &e) {
// handle error
log.Fatal(e.Error())
}
}
}
You can override the default server globally using the WithServerIndex
option when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
# | Server | Variables |
---|---|---|
0 | https://api.unified.to |
None |
1 | https://api-eu.unified.to |
None |
package main
import (
"context"
unifiedgosdk "github.com/unified-to/unified-go-sdk"
"github.com/unified-to/unified-go-sdk/pkg/models/operations"
"log"
)
func main() {
s := unifiedgosdk.New(
unifiedgosdk.WithServerIndex(1),
)
request := operations.CreateAccountingAccountRequest{
ConnectionID: "<value>",
}
ctx := context.Background()
res, err := s.Accounting.CreateAccountingAccount(ctx, request)
if err != nil {
log.Fatal(err)
}
if res.AccountingAccount != nil {
// handle response
}
}
The default server can also be overridden globally using the WithServerURL
option when initializing the SDK client instance. For example:
package main
import (
"context"
unifiedgosdk "github.com/unified-to/unified-go-sdk"
"github.com/unified-to/unified-go-sdk/pkg/models/operations"
"log"
)
func main() {
s := unifiedgosdk.New(
unifiedgosdk.WithServerURL("https://api.unified.to"),
)
request := operations.CreateAccountingAccountRequest{
ConnectionID: "<value>",
}
ctx := context.Background()
res, err := s.Accounting.CreateAccountingAccount(ctx, request)
if err != nil {
log.Fatal(err)
}
if res.AccountingAccount != nil {
// handle response
}
}
The Go SDK makes API calls that wrap an internal HTTP client. The requirements for the HTTP client are very simple. It must match this interface:
type HTTPClient interface {
Do(req *http.Request) (*http.Response, error)
}
The built-in net/http
client satisfies this interface and a default client based on the built-in is provided by default. To replace this default with a client of your own, you can implement this interface yourself or provide your own client configured as desired. Here's a simple example, which adds a client with a 30 second timeout.
import (
"net/http"
"time"
"github.com/myorg/your-go-sdk"
)
var (
httpClient = &http.Client{Timeout: 30 * time.Second}
sdkClient = sdk.New(sdk.WithClient(httpClient))
)
This can be a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration.
This SDK supports the following security scheme globally:
Name | Type | Scheme |
---|---|---|
Jwt |
apiKey | API key |
You can configure it using the WithSecurity
option when initializing the SDK client instance. For example:
package main
import (
"context"
unifiedgosdk "github.com/unified-to/unified-go-sdk"
"github.com/unified-to/unified-go-sdk/pkg/models/operations"
"log"
)
func main() {
s := unifiedgosdk.New(
unifiedgosdk.WithSecurity("<YOUR_API_KEY_HERE>"),
)
request := operations.CreateAccountingAccountRequest{
ConnectionID: "<value>",
}
ctx := context.Background()
res, err := s.Accounting.CreateAccountingAccount(ctx, request)
if err != nil {
log.Fatal(err)
}
if res.AccountingAccount != nil {
// handle response
}
}
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
To change the default retry strategy for a single API call, simply provide a retry.Config
object to the call by using the WithRetries
option:
package main
import (
"context"
unifiedgosdk "github.com/unified-to/unified-go-sdk"
"github.com/unified-to/unified-go-sdk/pkg/models/operations"
"github.com/unified-to/unified-go-sdk/pkg/retry"
"log"
"pkg/models/operations"
)
func main() {
s := unifiedgosdk.New()
request := operations.CreateAccountingAccountRequest{
ConnectionID: "<value>",
}
ctx := context.Background()
res, err := s.Accounting.CreateAccountingAccount(ctx, request, operations.WithRetries(
retry.Config{
Strategy: "backoff",
Backoff: &retry.BackoffStrategy{
InitialInterval: 1,
MaxInterval: 50,
Exponent: 1.1,
MaxElapsedTime: 100,
},
RetryConnectionErrors: false,
}))
if err != nil {
log.Fatal(err)
}
if res.AccountingAccount != nil {
// handle response
}
}
If you'd like to override the default retry strategy for all operations that support retries, you can use the WithRetryConfig
option at SDK initialization:
package main
import (
"context"
unifiedgosdk "github.com/unified-to/unified-go-sdk"
"github.com/unified-to/unified-go-sdk/pkg/models/operations"
"github.com/unified-to/unified-go-sdk/pkg/retry"
"log"
)
func main() {
s := unifiedgosdk.New(
unifiedgosdk.WithRetryConfig(
retry.Config{
Strategy: "backoff",
Backoff: &retry.BackoffStrategy{
InitialInterval: 1,
MaxInterval: 50,
Exponent: 1.1,
MaxElapsedTime: 100,
},
RetryConnectionErrors: false,
}),
)
request := operations.CreateAccountingAccountRequest{
ConnectionID: "<value>",
}
ctx := context.Background()
res, err := s.Accounting.CreateAccountingAccount(ctx, request)
if err != nil {
log.Fatal(err)
}
if res.AccountingAccount != nil {
// handle response
}
}
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!