func()

in sobject/framework.go [216:233]


func (r *Resources) GetContent(id string, content ContentType) ([]byte, error) {
	if r.query == nil {
		return nil, errors.New("salesforce api is not initialized properly")
	}

	if id == "" {
		return nil, fmt.Errorf("sobject salesforce api: %s can not be empty", id)
	}

	switch content {
	case AttachmentType:
	case DocumentType:
	default:
		return nil, fmt.Errorf("sobject salesforce: content type (%s) is not supported", string(content))
	}

	return r.query.contentCallout(id, content)
}