package
0.2.2
Repository: https://github.com/russman12/go-force.git
Documentation: pkg.go.dev

# 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

ClassMethodHTTP requestSummary
OrgApiGetLimitsGet /limitsList Org Limits
OrgApiGetResourcesGet /List Available REST Resources
SObjectApiCreateRecordPost /sobjects/{sObject}Create Records Using sObject Basic Information
SObjectApiGetBasicInfoGet /sobjects/{sObject}Retrieve Object Metadata Using sObject Basic Information
SObjectApiGetSObjectsGet /sobjectsGet a List of Objects
SObjectApiRetrieveRecordGet /sobjects/{sObject}/{recordId}Retrieve Records Using sObject Rows
SObjectApiSObjectDescribeGet /sobjects/{sObject}/describeRetrieve Metadata for an Object

Documentation For Models

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

Author

[email protected]