Categorygithub.com/Carbon-for-Developers/carbon-sdks/go

# Packages

No description provided by the author

# README

Visit Carbon

Carbon

Connect external data to LLMs, no matter the source.

Go Reference

Installation

Add to your project:

go get github.com/Carbon-for-Developers/carbon-sdks/go

Getting Started

package main

import (
	"fmt"

	carbon "github.com/Carbon-for-Developers/carbon-sdks/go"
)

func main() {
	// 1) Get an access token
	configuration := carbon.NewConfiguration()
	configuration.SetApiKey("API_KEY")
	configuration.SetCustomerId("CUSTOMER_ID")
	client := carbon.NewAPIClient(configuration)
	accessTokenRequest := client.AuthApi.GetAccessToken()
	accessTokenResponse, _, _ := accessTokenRequest.Execute()
	accessToken := accessTokenResponse.GetAccessToken()

	// 2) Use the access token to make requests
	configuration = carbon.NewConfiguration()
	configuration.SetAccessToken(accessToken)
	client = carbon.NewAPIClient(configuration)

	whiteLabelingRequest := client.AuthApi.GetWhiteLabeling()
	whiteLabelingResponse, _, _ := whiteLabelingRequest.Execute()
	integrations := whiteLabelingResponse.GetIntegrations()
	fmt.Println(integrations)
}

Documentation for API Endpoints

All URIs are relative to https://api.carbon.ai

ClassMethodHTTP requestDescription
AuthApiGetAccessTokenGet /auth/v1/access_tokenGet Access Token
AuthApiGetWhiteLabelingGet /auth/v1/white_labelingGet White Labeling
CRMApiGetAccountGet /integrations/data/crm/accounts/{id}Get Account
CRMApiGetAccountsPost /integrations/data/crm/accountsGet Accounts
CRMApiGetContactGet /integrations/data/crm/contacts/{id}Get Contact
CRMApiGetContactsPost /integrations/data/crm/contactsGet Contacts
CRMApiGetLeadGet /integrations/data/crm/leads/{id}Get Lead
CRMApiGetLeadsPost /integrations/data/crm/leadsGet Leads
CRMApiGetOpportunitiesPost /integrations/data/crm/opportunitiesGet Opportunities
CRMApiGetOpportunityGet /integrations/data/crm/opportunities/{id}Get Opportunity
DataSourcesApiAddTagsPost /data_sources/tags/addAdd Data Source Tags
DataSourcesApiQueryPost /data_sourcesData Sources
DataSourcesApiQueryUserDataSourcesPost /user_data_sourcesUser Data Sources
DataSourcesApiRemoveTagsPost /data_sources/tags/removeRemove Data Source Tags
DataSourcesApiRevokeAccessTokenPost /revoke_access_tokenRevoke Access Token
EmbeddingsApiGetDocumentsPost /embeddingsEmbeddings
EmbeddingsApiGetEmbeddingsAndChunksPost /text_chunksRetrieve Embeddings And Content
EmbeddingsApiListPost /list_chunks_and_embeddingsRetrieve Embeddings And Content V2
EmbeddingsApiUploadChunksAndEmbeddingsPost /upload_chunks_and_embeddingsUpload Chunks And Embeddings
FilesApiCreateUserFileTagsPost /create_user_file_tagsCreate File Tags
FilesApiDeleteFileTagsPost /delete_user_file_tagsDelete File Tags
FilesApiDeleteManyPost /delete_filesDelete Files Endpoint
FilesApiDeleteV2Post /delete_files_v2Delete Files V2 Endpoint
FilesApiGetParsedFileGet /parsed_file/{file_id}Parsed File
FilesApiGetRawFileGet /raw_file/{file_id}Raw File
FilesApiModifyColdStorageParametersPost /modify_cold_storage_parametersModify Cold Storage Parameters
FilesApiMoveToHotStoragePost /move_to_hot_storageMove To Hot Storage
FilesApiQueryUserFilesPost /user_files_v2User Files V2
FilesApiQueryUserFilesDeprecatedPost /user_filesUser Files
FilesApiResyncPost /resync_fileResync File
FilesApiUploadPost /uploadfileCreate Upload File
FilesApiUploadFromUrlPost /upload_file_from_urlCreate Upload File From Url
FilesApiUploadTextPost /upload_textCreate Raw Text
GithubApiGetIssueGet /integrations/data/github/issues/{issue_number}Issue
GithubApiGetIssuesPost /integrations/data/github/issuesIssues
GithubApiGetPrGet /integrations/data/github/pull_requests/{pull_number}Get Pr
GithubApiGetPrCommentsPost /integrations/data/github/pull_requests/commentsPr Comments
GithubApiGetPrCommitsPost /integrations/data/github/pull_requests/commitsPr Commits
GithubApiGetPrFilesPost /integrations/data/github/pull_requests/filesPr Files
GithubApiGetPullRequestsPost /integrations/data/github/pull_requestsGet Prs
IntegrationsApiCancelPost /integrations/items/sync/cancelCancel Data Source Items Sync
IntegrationsApiConnectDataSourcePost /integrations/connectConnect Data Source
IntegrationsApiConnectDocument360Post /integrations/document360Document360 Connect
IntegrationsApiConnectFreshdeskPost /integrations/freshdeskFreshdesk Connect
IntegrationsApiConnectGitbookPost /integrations/gitbookGitbook Connect
IntegrationsApiConnectGuruPost /integrations/guruGuru Connect
IntegrationsApiCreateAwsIamUserPost /integrations/s3S3 Auth
IntegrationsApiGetOauthUrlPost /integrations/oauth_urlGet Oauth Url
IntegrationsApiListConfluencePagesPost /integrations/confluence/listConfluence List
IntegrationsApiListConversationsGet /integrations/slack/conversationsSlack List Conversations
IntegrationsApiListDataSourceItemsPost /integrations/items/listList Data Source Items
IntegrationsApiListFoldersGet /integrations/outlook/user_foldersOutlook Folders
IntegrationsApiListGitbookSpacesGet /integrations/gitbook/spacesGitbook Spaces
IntegrationsApiListLabelsGet /integrations/gmail/user_labelsGmail Labels
IntegrationsApiListOutlookCategoriesGet /integrations/outlook/user_categoriesOutlook Categories
IntegrationsApiListReposGet /integrations/github/reposGithub List Repos
IntegrationsApiListSharepointSitesGet /integrations/sharepoint/sites/listList Sharepoint Sites
IntegrationsApiSyncAzureBlobFilesPost /integrations/azure_blob_storage/filesAzure Blob Files
IntegrationsApiSyncAzureBlobStoragePost /integrations/azure_blob_storageAzure Blob Storage Auth
IntegrationsApiSyncConfluencePost /integrations/confluence/syncConfluence Sync
IntegrationsApiSyncDataSourceItemsPost /integrations/items/syncSync Data Source Items
IntegrationsApiSyncFilesPost /integrations/files/syncSync Files
IntegrationsApiSyncGitHubPost /integrations/githubGithub Connect
IntegrationsApiSyncGitbookPost /integrations/gitbook/syncGitbook Sync
IntegrationsApiSyncGmailPost /integrations/gmail/syncGmail Sync
IntegrationsApiSyncOutlookPost /integrations/outlook/syncOutlook Sync
IntegrationsApiSyncReposPost /integrations/github/sync_reposGithub Sync Repos
IntegrationsApiSyncRssFeedPost /integrations/rss_feedRss Feed
IntegrationsApiSyncS3FilesPost /integrations/s3/filesS3 Files
IntegrationsApiSyncSlackPost /integrations/slack/syncSlack Sync
OrganizationsApiGetGet /organizationGet Organization
OrganizationsApiUpdatePost /organization/updateUpdate Organization
OrganizationsApiUpdateStatsPost /organization/statisticsUpdate Organization Statistics
UsersApiDeletePost /delete_usersDelete Users
UsersApiGetPost /userUser Endpoint
UsersApiListPost /list_usersList Users Endpoint
UsersApiToggleUserFeaturesPost /modify_user_configurationToggle User Features
UsersApiUpdateUsersPost /update_usersUpdate Users
UsersApiWhoAmIGet /whoamiMe Endpoint
UtilitiesApiFetchUrlsGet /fetch_urlsFetch Urls
UtilitiesApiFetchWebpagePost /fetch_webpageFetch Urls V2
UtilitiesApiFetchYoutubeTranscriptsGet /fetch_youtube_transcriptFetch Youtube Transcripts
UtilitiesApiProcessSitemapGet /process_sitemapSitemap
UtilitiesApiScrapeSitemapPost /scrape_sitemapScrape Sitemap
UtilitiesApiScrapeWebPost /web_scrapeWeb Scrape
UtilitiesApiSearchUrlsGet /search_urlsSearch Urls
UtilitiesApiUserWebpagesPost /user_webpagesUser Web Pages
WebhooksApiAddUrlPost /add_webhookAdd Webhook Url
WebhooksApiDeleteUrlDelete /delete_webhook/{webhook_id}Delete Webhook Url
WebhooksApiUrlsPost /webhooksWebhook Urls
WhiteLabelApiCreatePost /white_label/createCreate White Labels
WhiteLabelApiDeletePost /white_label/deleteDelete White Labels
WhiteLabelApiListPost /white_label/listList White Labels
WhiteLabelApiUpdatePost /white_label/updateUpdate White Label

Documentation For Models