# Packages
No description provided by the author
# README
Go client for Salesforce Rest API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Overview
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 56.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Documentation for API Endpoints
All URIs are relative to https://myorg.lightning.force.com/services/data/v56.0
Class | Method | HTTP request | Summary |
---|---|---|---|
OrgApi | GetLimits | Get /limits | List Org Limits |
OrgApi | GetResources | Get / | List Available REST Resources |
SObjectApi | CreateRecord | Post /sobjects/{sObject} | Create Records Using sObject Basic Information |
SObjectApi | GetBasicInfo | Get /sobjects/{sObject} | Retrieve Object Metadata Using sObject Basic Information |
SObjectApi | GetSObjects | Get /sobjects | Get a List of Objects |
SObjectApi | RetrieveRecord | Get /sobjects/{sObject}/{recordId} | Retrieve Records Using sObject Rows |
SObjectApi | SObjectDescribe | Get /sobjects/{sObject}/describe | Retrieve Metadata for an Object |
Documentation For Models
- ActionOverrides
- ChildRelationships
- CreateRecordResult
- EncodingType
- FieldDescribe
- FieldDescribePicklist
- FieldType
- ModelError
- RecordTypeInfo
- RecordTypeInfoUrls
- SObjectDescribe
- SObjectDescribes
- SupportedScopes
Documentation For Authorization
oAuth (password)
- Type: OAuth
- Flow: password
- Authorization URL:
- Scopes: N/A
Example
package main
import (
"golang.org/x/oauth2"
"context"
)
func main() {
oAuth2Cfg := oauth2.Config{}
token, err := oAuth2Cfg.PasswordCredentialsToken(context.Background(), "username", "password")
if err != nil {
panic(err)
}
tokenSrc := oAuth2Cfg.TokenSource(context.Background(), token)
packageName.NewAPIClient(packageName.NewConfiguration(), tokenSrc)
}
oAuth (application)
- Type: OAuth
- Flow: application
- Authorization URL:
- Scopes: N/A
Example
package main
import (
"golang.org/x/oauth2"
"context"
)
func main() {
oAuth2Cfg := clientcredentials.Config{}
tokenSrc := oAuth2Cfg.TokenSource(context.Background())
packageName.NewAPIClient(packageName.NewConfiguration(), tokenSrc)
}
Documentation for Utility Methods
Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:
PtrBool
PtrInt
PtrInt32
PtrInt64
PtrFloat
PtrFloat32
PtrFloat64
PtrString
PtrTime