All URIs are relative to https://console.jumpcloud.com/api/v2
Method | HTTP request | Description |
---|---|---|
knowledge_salesforce_list | GET /knowledge/salesforce | List Knowledge Articles |
SalesforceKnowledgeListOutput knowledge_salesforce_list(opts)
List Knowledge Articles
This endpoint returns a list of knowledge articles hosted in salesforce. Sample Request curl -X GET https://console.jumpcloud.com/api/v2/knowledge/salesforce \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}'
# load the gem
require 'jcapiv2'
# setup authorization
JCAPIv2.configure do |config|
# Configure API key authorization: x-api-key
config.api_key['x-api-key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['x-api-key'] = 'Bearer'
end
api_instance = JCAPIv2::KnowledgeApi.new
opts = {
fields: ["fields_example"], # Array<String> |
filter: ["filter_example"], # Array<String> | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in
limit: 10, # Integer | The number of records to return at once. Limited to 100.
skip: 0, # Integer | The offset into the records to return.
sort: ["sort_example"], # Array<String> | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending.
}
begin
#List Knowledge Articles
result = api_instance.knowledge_salesforce_list(opts)
p result
rescue JCAPIv2::ApiError => e
puts "Exception when calling KnowledgeApi->knowledge_salesforce_list: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
fields | Array<String> | [optional] | |
filter | Array<String> | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] |
limit | Integer | The number of records to return at once. Limited to 100. | [optional] [default to 10] |
skip | Integer | The offset into the records to return. | [optional] [default to 0] |
sort | Array<String> | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] |
- Content-Type: application/json
- Accept: application/json