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 Bulkv2 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://test.salesforce.com/services/data/v56.0

ClassMethodHTTP requestSummary
JobApiCloseOrAbortJobPatch /jobs/ingest/{jobId}Close or Abort a Job
JobApiCreateJobPost /jobs/ingestCreate a job
JobApiDeleteJobDelete /jobs/ingest/{jobId}Delete a Job
JobApiGetJobFailedResultsGet /jobs/ingest/{jobId}/failedResultsGet Job Failed Record Results
JobApiGetJobInfoGet /jobs/ingest/{jobId}Get Job Info
JobApiGetJobSuccessfulResultsGet /jobs/ingest/{jobId}/successfulResultsGet Job Successful Record Results
JobApiGetJobUnprocessedRecordsGet /jobs/ingest/{jobId}/unprocessedrecordsGet Job Unprocessed Record Results
JobApiGetJobsGet /jobs/ingestGet All Jobs
JobApiUploadJobDataPut /jobs/ingest/{jobId}/batchesUpload Job Data
QueryApiAbortQueryJobPatch /jobs/query/{jobId}Abort a Query Job
QueryApiCreateQueryJobPost /jobs/queryCreate a Query Job
QueryApiDeleteQueryJobDelete /jobs/query/{jobId}Delete a Query Job
QueryApiGetQueryJobInfoGet /jobs/query/{jobId}Get Information About a Query Job
QueryApiGetQueryJobResultsGet /jobs/query/{jobId}/resultsGet Results for a Query Job
QueryApiGetQueryJobsGet /jobs/queryGet Information About All Query Jobs

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]