Chilkat Online Tools

PowerBuilder / Support API / Show Settings

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_Name
string ls_Url
string ls_StrVal
string ls_In523
string ls_Estc
string ls_Advanced_analytics
string ls_Agent_forwarding
string ls_Allow_ccs
string ls_Allow_email_template_customization
string ls_Automatic_answers
string ls_Bcc_archiving
string ls_Benchmark_opt_out
string ls_Business_hours
string ls_Chat
string ls_Chat_about_my_ticket
string ls_Csat_reason_code
string ls_Custom_dkim_domain
string ls_Customer_context_as_default
string ls_Customer_satisfaction
string ls_Dynamic_contents
string ls_Explore
string ls_Explore_on_support_ent_plan
string ls_Explore_on_support_pro_plan
string ls_Facebook
string ls_Facebook_login
string ls_Fallback_composer
string ls_Forum_analytics
string ls_Good_data_and_explore
string ls_Google_login
string ls_Insights
string ls_Is_abusive
string ls_Light_agents
string ls_Markdown
string ls_On_hold_status
string ls_Rich_content_in_emails
string ls_Sandbox
string ls_Satisfaction_prediction
string ls_Suspended_ticket_notification
string ls_Ticket_forms
string ls_Ticket_tagging
string ls_Topic_suggestion
string ls_Twitter
string ls_Twitter_login
string ls_User_org_fields
string ls_User_tagging
string ls_Voice
string ls_Agent_workspace
string ls_Aw_self_serve_migration_enabled
string ls_Focus_mode
string ls_Idle_timeout_enabled
string ls_Unified_agent_statuses
string ls_Accepted_api_agreement
string ls_Api_password_access
string ls_Api_token_access
string ls_Create_private
string ls_Create_public
string ls_Use
string ls_Backend
string ls_Favicon_url
string ls_Header_color
string ls_Header_logo_url
string ls_Page_background_color
string ls_Tab_background_color
string ls_Text_color
string ls_Default_brand_id
string ls_Require_brand_on_new_tickets
string ls_Cdn_provider
string ls_Fallback_cdn_provider
string ls_Available
string ls_Enabled
string ls_Integrated
string ls_Maximum_request_count
string ls_Welcome_message
string ls_Show_chat_tooltip
string ls_Xsell_source
string ls_Gooddata_advanced_analyticsEnabled
string ls_Has_google_apps
string ls_Has_google_apps_admin
string ls_Check_group_name_uniqueness
string ls_Attachment_size
string ls_Pod_id
string ls_Prefer_lotus
string ls_Reporting
string ls_Account_size
string ls_Checklist_onboarding_version
string ls_Onboarding_segments
string ls_Product_sign_up
string ls_Autorouting_tag
string ls_RoutingEnabled
string ls_Max_email_capacity
string ls_Max_messaging_capacity
string ls_Reassignment_messaging_enabled
string ls_Reassignment_messaging_timeout
string ls_Reassignment_talk_timeout
string ls_Macro_most_used
string ls_Macro_order
string ls_Using_skill_based_routing
string ls_Email_channel
string ls_Msteams_channel
string ls_Show_in_context_panel
string ls_Slack_channel
string ls_Tickets_channel
string ls_Forum
string ls_Rule_usage
string ls_Search
string ls_Raw_ticket_forms_instructions
string ls_Ticket_forms_instructions
string ls_Accepted_new_collaboration_tos
string ls_Agent_collision
string ls_Agent_ticket_deletion
string ls_Allow_group_reset
string ls_Assign_default_organization
string ls_Assign_tickets_upon_solve
string ls_Auto_updated_ccs_followers_rules
string ls_Collaboration
string ls_Comments_public_by_default
string ls_Email_attachments
string ls_Emoji_autocompletion
string ls_Follower_and_email_cc_collaborations
string ls_Has_color_text
string ls_Is_first_comment_private_enabled
string ls_Light_agent_email_ccs_allowed
string ls_List_empty_views
string ls_List_newest_comments_first
string ls_Markdown_ticket_comments
string ls_Maximum_personal_views_to_list
string ls_Private_attachments
string ls_Rich_text_comments
string ls_Status_hold
string ls_Tagging
string ls_TicketsUsing_skill_based_routing
string ls_Shorten_url
string ls_Agent_created_welcome_emails
string ls_End_user_phone_number_validation
string ls_Have_gravatars_enabled
string ls_Language_selection
string ls_Multiple_organizations
string ls_UserTagging
string ls_Time_zone_selection
string ls_Agent_confirmation_when_forwarding
string ls_Agent_wrap_up_after_calls
string ls_VoiceEnabled
string ls_Logging
string ls_Maximum_queue_size
string ls_Maximum_queue_wait_time
string ls_Only_during_business_hours
string ls_Outbound_enabled
string ls_Recordings_public
string ls_Uk_mobile_forwarding
integer i
integer li_Count_i

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

loo_Http.BasicAuth = 1
loo_Http.Login = "login"
loo_Http.Password = "password"

loo_Http.SetRequestHeader("Accept","application/json")

loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")

li_Success = loo_Http.QuickGetSb("https://example.zendesk.com/api/v2/account/settings",loo_SbResponseBody)
if li_Success = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_SbResponseBody
    return
end if

loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Http.LastStatus
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Http.LastHeader
    Write-Debug "Failed."
    destroy loo_Http
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)

// {
//   "settings": {
//     "active_features": {
//       "advanced_analytics": "<boolean>",
//       "agent_forwarding": "<boolean>",
//       "allow_ccs": "<boolean>",
//       "allow_email_template_customization": "<boolean>",
//       "automatic_answers": "<boolean>",
//       "bcc_archiving": "<boolean>",
//       "benchmark_opt_out": "<boolean>",
//       "business_hours": "<boolean>",
//       "chat": "<boolean>",
//       "chat_about_my_ticket": "<boolean>",
//       "csat_reason_code": "<boolean>",
//       "custom_dkim_domain": "<boolean>",
//       "customer_context_as_default": "<boolean>",
//       "customer_satisfaction": "<boolean>",
//       "dynamic_contents": "<boolean>",
//       "explore": "<boolean>",
//       "explore_on_support_ent_plan": "<boolean>",
//       "explore_on_support_pro_plan": "<boolean>",
//       "facebook": "<boolean>",
//       "facebook_login": "<boolean>",
//       "fallback_composer": "<boolean>",
//       "forum_analytics": "<boolean>",
//       "good_data_and_explore": "<boolean>",
//       "google_login": "<boolean>",
//       "insights": "<boolean>",
//       "is_abusive": "<boolean>",
//       "light_agents": "<boolean>",
//       "markdown": "<boolean>",
//       "on_hold_status": "<boolean>",
//       "rich_content_in_emails": "<boolean>",
//       "sandbox": "<boolean>",
//       "satisfaction_prediction": "<boolean>",
//       "suspended_ticket_notification": "<boolean>",
//       "ticket_forms": "<boolean>",
//       "ticket_tagging": "<boolean>",
//       "topic_suggestion": "<boolean>",
//       "twitter": "<boolean>",
//       "twitter_login": "<boolean>",
//       "user_org_fields": "<boolean>",
//       "user_tagging": "<boolean>",
//       "voice": "<boolean>"
//     },
//     "agents": {
//       "agent_workspace": "<boolean>",
//       "aw_self_serve_migration_enabled": "<boolean>",
//       "focus_mode": "<boolean>",
//       "idle_timeout_enabled": "<boolean>",
//       "unified_agent_statuses": "<boolean>"
//     },
//     "api": {
//       "accepted_api_agreement": "<boolean>",
//       "api_password_access": "<string>",
//       "api_token_access": "<string>"
//     },
//     "apps": {
//       "create_private": "<boolean>",
//       "create_public": "<boolean>",
//       "use": "<boolean>"
//     },
//     "billing": {
//       "backend": "<string>"
//     },
//     "branding": {
//       "favicon_url": "<string>",
//       "header_color": "<string>",
//       "header_logo_url": "<string>",
//       "page_background_color": "<string>",
//       "tab_background_color": "<string>",
//       "text_color": "<string>"
//     },
//     "brands": {
//       "default_brand_id": "<integer>",
//       "require_brand_on_new_tickets": "<boolean>"
//     },
//     "cdn": {
//       "cdn_provider": "<string>",
//       "fallback_cdn_provider": "<string>",
//       "hosts": [
//         {
//           "name": "<string>",
//           "url": "<string>"
//         },
//         {
//           "name": "<string>",
//           "url": "<string>"
//         }
//       ]
//     },
//     "chat": {
//       "available": "<boolean>",
//       "enabled": "<boolean>",
//       "integrated": "<boolean>",
//       "maximum_request_count": "<integer>",
//       "welcome_message": "<string>"
//     },
//     "cross_sell": {
//       "show_chat_tooltip": "<boolean>",
//       "xsell_source": "<string>"
//     },
//     "gooddata_advanced_analytics": {
//       "enabled": "<boolean>"
//     },
//     "google_apps": {
//       "has_google_apps": "<boolean>",
//       "has_google_apps_admin": "<boolean>"
//     },
//     "groups": {
//       "check_group_name_uniqueness": "<boolean>"
//     },
//     "limits": {
//       "attachment_size": "<integer>"
//     },
//     "localization": {
//       "locale_ids": [
//         "<integer>",
//         "<integer>"
//       ]
//     },
//     "lotus": {
//       "pod_id": "<integer>",
//       "prefer_lotus": "<boolean>",
//       "reporting": "<boolean>"
//     },
//     "metrics": {
//       "account_size": "<string>"
//     },
//     "onboarding": {
//       "checklist_onboarding_version": "<integer>",
//       "onboarding_segments": "<string>",
//       "product_sign_up": "<string>"
//     },
//     "routing": {
//       "autorouting_tag": "<string>",
//       "enabled": "<boolean>",
//       "max_email_capacity": "<integer>",
//       "max_messaging_capacity": "<integer>",
//       "reassignment_messaging_enabled": "<boolean>",
//       "reassignment_messaging_timeout": "<integer>",
//       "reassignment_talk_timeout": "<integer>"
//     },
//     "rule": {
//       "macro_most_used": "<boolean>",
//       "macro_order": "<string>",
//       "skill_based_filtered_views": [
//         {
//           "in523": 60303840.72385332
//         },
//         {
//           "estc": "eu aliquip id"
//         }
//       ],
//       "using_skill_based_routing": "<boolean>"
//     },
//     "side_conversations": {
//       "email_channel": "<boolean>",
//       "msteams_channel": "<boolean>",
//       "show_in_context_panel": "<boolean>",
//       "slack_channel": "<boolean>",
//       "tickets_channel": "<boolean>"
//     },
//     "statistics": {
//       "forum": "<boolean>",
//       "rule_usage": "<boolean>",
//       "search": "<boolean>"
//     },
//     "ticket_form": {
//       "raw_ticket_forms_instructions": "<string>",
//       "ticket_forms_instructions": "<string>"
//     },
//     "ticket_sharing_partners": {
//       "support_addresses": [
//         "<string>",
//         "<string>"
//       ]
//     },
//     "tickets": {
//       "accepted_new_collaboration_tos": "<boolean>",
//       "agent_collision": "<boolean>",
//       "agent_ticket_deletion": "<boolean>",
//       "allow_group_reset": "<boolean>",
//       "assign_default_organization": "<boolean>",
//       "assign_tickets_upon_solve": "<boolean>",
//       "auto_updated_ccs_followers_rules": "<boolean>",
//       "collaboration": "<boolean>",
//       "comments_public_by_default": "<boolean>",
//       "email_attachments": "<boolean>",
//       "emoji_autocompletion": "<boolean>",
//       "follower_and_email_cc_collaborations": "<boolean>",
//       "has_color_text": "<boolean>",
//       "is_first_comment_private_enabled": "<boolean>",
//       "light_agent_email_ccs_allowed": "<boolean>",
//       "list_empty_views": "<boolean>",
//       "list_newest_comments_first": "<boolean>",
//       "markdown_ticket_comments": "<boolean>",
//       "maximum_personal_views_to_list": "<integer>",
//       "private_attachments": "<boolean>",
//       "rich_text_comments": "<boolean>",
//       "status_hold": "<boolean>",
//       "tagging": "<boolean>",
//       "using_skill_based_routing": "<boolean>"
//     },
//     "twitter": {
//       "shorten_url": "<string>"
//     },
//     "user": {
//       "agent_created_welcome_emails": "<boolean>",
//       "end_user_phone_number_validation": "<boolean>",
//       "have_gravatars_enabled": "<boolean>",
//       "language_selection": "<boolean>",
//       "multiple_organizations": "<boolean>",
//       "tagging": "<boolean>",
//       "time_zone_selection": "<boolean>"
//     },
//     "voice": {
//       "agent_confirmation_when_forwarding": "<boolean>",
//       "agent_wrap_up_after_calls": "<boolean>",
//       "enabled": "<boolean>",
//       "logging": "<boolean>",
//       "maximum_queue_size": "<integer>",
//       "maximum_queue_wait_time": "<integer>",
//       "only_during_business_hours": "<boolean>",
//       "outbound_enabled": "<boolean>",
//       "recordings_public": "<boolean>",
//       "uk_mobile_forwarding": "<boolean>"
//     }
//   }
// }

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

ls_Advanced_analytics = loo_JResp.StringOf("settings.active_features.advanced_analytics")
ls_Agent_forwarding = loo_JResp.StringOf("settings.active_features.agent_forwarding")
ls_Allow_ccs = loo_JResp.StringOf("settings.active_features.allow_ccs")
ls_Allow_email_template_customization = loo_JResp.StringOf("settings.active_features.allow_email_template_customization")
ls_Automatic_answers = loo_JResp.StringOf("settings.active_features.automatic_answers")
ls_Bcc_archiving = loo_JResp.StringOf("settings.active_features.bcc_archiving")
ls_Benchmark_opt_out = loo_JResp.StringOf("settings.active_features.benchmark_opt_out")
ls_Business_hours = loo_JResp.StringOf("settings.active_features.business_hours")
ls_Chat = loo_JResp.StringOf("settings.active_features.chat")
ls_Chat_about_my_ticket = loo_JResp.StringOf("settings.active_features.chat_about_my_ticket")
ls_Csat_reason_code = loo_JResp.StringOf("settings.active_features.csat_reason_code")
ls_Custom_dkim_domain = loo_JResp.StringOf("settings.active_features.custom_dkim_domain")
ls_Customer_context_as_default = loo_JResp.StringOf("settings.active_features.customer_context_as_default")
ls_Customer_satisfaction = loo_JResp.StringOf("settings.active_features.customer_satisfaction")
ls_Dynamic_contents = loo_JResp.StringOf("settings.active_features.dynamic_contents")
ls_Explore = loo_JResp.StringOf("settings.active_features.explore")
ls_Explore_on_support_ent_plan = loo_JResp.StringOf("settings.active_features.explore_on_support_ent_plan")
ls_Explore_on_support_pro_plan = loo_JResp.StringOf("settings.active_features.explore_on_support_pro_plan")
ls_Facebook = loo_JResp.StringOf("settings.active_features.facebook")
ls_Facebook_login = loo_JResp.StringOf("settings.active_features.facebook_login")
ls_Fallback_composer = loo_JResp.StringOf("settings.active_features.fallback_composer")
ls_Forum_analytics = loo_JResp.StringOf("settings.active_features.forum_analytics")
ls_Good_data_and_explore = loo_JResp.StringOf("settings.active_features.good_data_and_explore")
ls_Google_login = loo_JResp.StringOf("settings.active_features.google_login")
ls_Insights = loo_JResp.StringOf("settings.active_features.insights")
ls_Is_abusive = loo_JResp.StringOf("settings.active_features.is_abusive")
ls_Light_agents = loo_JResp.StringOf("settings.active_features.light_agents")
ls_Markdown = loo_JResp.StringOf("settings.active_features.markdown")
ls_On_hold_status = loo_JResp.StringOf("settings.active_features.on_hold_status")
ls_Rich_content_in_emails = loo_JResp.StringOf("settings.active_features.rich_content_in_emails")
ls_Sandbox = loo_JResp.StringOf("settings.active_features.sandbox")
ls_Satisfaction_prediction = loo_JResp.StringOf("settings.active_features.satisfaction_prediction")
ls_Suspended_ticket_notification = loo_JResp.StringOf("settings.active_features.suspended_ticket_notification")
ls_Ticket_forms = loo_JResp.StringOf("settings.active_features.ticket_forms")
ls_Ticket_tagging = loo_JResp.StringOf("settings.active_features.ticket_tagging")
ls_Topic_suggestion = loo_JResp.StringOf("settings.active_features.topic_suggestion")
ls_Twitter = loo_JResp.StringOf("settings.active_features.twitter")
ls_Twitter_login = loo_JResp.StringOf("settings.active_features.twitter_login")
ls_User_org_fields = loo_JResp.StringOf("settings.active_features.user_org_fields")
ls_User_tagging = loo_JResp.StringOf("settings.active_features.user_tagging")
ls_Voice = loo_JResp.StringOf("settings.active_features.voice")
ls_Agent_workspace = loo_JResp.StringOf("settings.agents.agent_workspace")
ls_Aw_self_serve_migration_enabled = loo_JResp.StringOf("settings.agents.aw_self_serve_migration_enabled")
ls_Focus_mode = loo_JResp.StringOf("settings.agents.focus_mode")
ls_Idle_timeout_enabled = loo_JResp.StringOf("settings.agents.idle_timeout_enabled")
ls_Unified_agent_statuses = loo_JResp.StringOf("settings.agents.unified_agent_statuses")
ls_Accepted_api_agreement = loo_JResp.StringOf("settings.api.accepted_api_agreement")
ls_Api_password_access = loo_JResp.StringOf("settings.api.api_password_access")
ls_Api_token_access = loo_JResp.StringOf("settings.api.api_token_access")
ls_Create_private = loo_JResp.StringOf("settings.apps.create_private")
ls_Create_public = loo_JResp.StringOf("settings.apps.create_public")
ls_Use = loo_JResp.StringOf("settings.apps.use")
ls_Backend = loo_JResp.StringOf("settings.billing.backend")
ls_Favicon_url = loo_JResp.StringOf("settings.branding.favicon_url")
ls_Header_color = loo_JResp.StringOf("settings.branding.header_color")
ls_Header_logo_url = loo_JResp.StringOf("settings.branding.header_logo_url")
ls_Page_background_color = loo_JResp.StringOf("settings.branding.page_background_color")
ls_Tab_background_color = loo_JResp.StringOf("settings.branding.tab_background_color")
ls_Text_color = loo_JResp.StringOf("settings.branding.text_color")
ls_Default_brand_id = loo_JResp.StringOf("settings.brands.default_brand_id")
ls_Require_brand_on_new_tickets = loo_JResp.StringOf("settings.brands.require_brand_on_new_tickets")
ls_Cdn_provider = loo_JResp.StringOf("settings.cdn.cdn_provider")
ls_Fallback_cdn_provider = loo_JResp.StringOf("settings.cdn.fallback_cdn_provider")
ls_Available = loo_JResp.StringOf("settings.chat.available")
ls_Enabled = loo_JResp.StringOf("settings.chat.enabled")
ls_Integrated = loo_JResp.StringOf("settings.chat.integrated")
ls_Maximum_request_count = loo_JResp.StringOf("settings.chat.maximum_request_count")
ls_Welcome_message = loo_JResp.StringOf("settings.chat.welcome_message")
ls_Show_chat_tooltip = loo_JResp.StringOf("settings.cross_sell.show_chat_tooltip")
ls_Xsell_source = loo_JResp.StringOf("settings.cross_sell.xsell_source")
ls_Gooddata_advanced_analyticsEnabled = loo_JResp.StringOf("settings.gooddata_advanced_analytics.enabled")
ls_Has_google_apps = loo_JResp.StringOf("settings.google_apps.has_google_apps")
ls_Has_google_apps_admin = loo_JResp.StringOf("settings.google_apps.has_google_apps_admin")
ls_Check_group_name_uniqueness = loo_JResp.StringOf("settings.groups.check_group_name_uniqueness")
ls_Attachment_size = loo_JResp.StringOf("settings.limits.attachment_size")
ls_Pod_id = loo_JResp.StringOf("settings.lotus.pod_id")
ls_Prefer_lotus = loo_JResp.StringOf("settings.lotus.prefer_lotus")
ls_Reporting = loo_JResp.StringOf("settings.lotus.reporting")
ls_Account_size = loo_JResp.StringOf("settings.metrics.account_size")
ls_Checklist_onboarding_version = loo_JResp.StringOf("settings.onboarding.checklist_onboarding_version")
ls_Onboarding_segments = loo_JResp.StringOf("settings.onboarding.onboarding_segments")
ls_Product_sign_up = loo_JResp.StringOf("settings.onboarding.product_sign_up")
ls_Autorouting_tag = loo_JResp.StringOf("settings.routing.autorouting_tag")
ls_RoutingEnabled = loo_JResp.StringOf("settings.routing.enabled")
ls_Max_email_capacity = loo_JResp.StringOf("settings.routing.max_email_capacity")
ls_Max_messaging_capacity = loo_JResp.StringOf("settings.routing.max_messaging_capacity")
ls_Reassignment_messaging_enabled = loo_JResp.StringOf("settings.routing.reassignment_messaging_enabled")
ls_Reassignment_messaging_timeout = loo_JResp.StringOf("settings.routing.reassignment_messaging_timeout")
ls_Reassignment_talk_timeout = loo_JResp.StringOf("settings.routing.reassignment_talk_timeout")
ls_Macro_most_used = loo_JResp.StringOf("settings.rule.macro_most_used")
ls_Macro_order = loo_JResp.StringOf("settings.rule.macro_order")
ls_Using_skill_based_routing = loo_JResp.StringOf("settings.rule.using_skill_based_routing")
ls_Email_channel = loo_JResp.StringOf("settings.side_conversations.email_channel")
ls_Msteams_channel = loo_JResp.StringOf("settings.side_conversations.msteams_channel")
ls_Show_in_context_panel = loo_JResp.StringOf("settings.side_conversations.show_in_context_panel")
ls_Slack_channel = loo_JResp.StringOf("settings.side_conversations.slack_channel")
ls_Tickets_channel = loo_JResp.StringOf("settings.side_conversations.tickets_channel")
ls_Forum = loo_JResp.StringOf("settings.statistics.forum")
ls_Rule_usage = loo_JResp.StringOf("settings.statistics.rule_usage")
ls_Search = loo_JResp.StringOf("settings.statistics.search")
ls_Raw_ticket_forms_instructions = loo_JResp.StringOf("settings.ticket_form.raw_ticket_forms_instructions")
ls_Ticket_forms_instructions = loo_JResp.StringOf("settings.ticket_form.ticket_forms_instructions")
ls_Accepted_new_collaboration_tos = loo_JResp.StringOf("settings.tickets.accepted_new_collaboration_tos")
ls_Agent_collision = loo_JResp.StringOf("settings.tickets.agent_collision")
ls_Agent_ticket_deletion = loo_JResp.StringOf("settings.tickets.agent_ticket_deletion")
ls_Allow_group_reset = loo_JResp.StringOf("settings.tickets.allow_group_reset")
ls_Assign_default_organization = loo_JResp.StringOf("settings.tickets.assign_default_organization")
ls_Assign_tickets_upon_solve = loo_JResp.StringOf("settings.tickets.assign_tickets_upon_solve")
ls_Auto_updated_ccs_followers_rules = loo_JResp.StringOf("settings.tickets.auto_updated_ccs_followers_rules")
ls_Collaboration = loo_JResp.StringOf("settings.tickets.collaboration")
ls_Comments_public_by_default = loo_JResp.StringOf("settings.tickets.comments_public_by_default")
ls_Email_attachments = loo_JResp.StringOf("settings.tickets.email_attachments")
ls_Emoji_autocompletion = loo_JResp.StringOf("settings.tickets.emoji_autocompletion")
ls_Follower_and_email_cc_collaborations = loo_JResp.StringOf("settings.tickets.follower_and_email_cc_collaborations")
ls_Has_color_text = loo_JResp.StringOf("settings.tickets.has_color_text")
ls_Is_first_comment_private_enabled = loo_JResp.StringOf("settings.tickets.is_first_comment_private_enabled")
ls_Light_agent_email_ccs_allowed = loo_JResp.StringOf("settings.tickets.light_agent_email_ccs_allowed")
ls_List_empty_views = loo_JResp.StringOf("settings.tickets.list_empty_views")
ls_List_newest_comments_first = loo_JResp.StringOf("settings.tickets.list_newest_comments_first")
ls_Markdown_ticket_comments = loo_JResp.StringOf("settings.tickets.markdown_ticket_comments")
ls_Maximum_personal_views_to_list = loo_JResp.StringOf("settings.tickets.maximum_personal_views_to_list")
ls_Private_attachments = loo_JResp.StringOf("settings.tickets.private_attachments")
ls_Rich_text_comments = loo_JResp.StringOf("settings.tickets.rich_text_comments")
ls_Status_hold = loo_JResp.StringOf("settings.tickets.status_hold")
ls_Tagging = loo_JResp.StringOf("settings.tickets.tagging")
ls_TicketsUsing_skill_based_routing = loo_JResp.StringOf("settings.tickets.using_skill_based_routing")
ls_Shorten_url = loo_JResp.StringOf("settings.twitter.shorten_url")
ls_Agent_created_welcome_emails = loo_JResp.StringOf("settings.user.agent_created_welcome_emails")
ls_End_user_phone_number_validation = loo_JResp.StringOf("settings.user.end_user_phone_number_validation")
ls_Have_gravatars_enabled = loo_JResp.StringOf("settings.user.have_gravatars_enabled")
ls_Language_selection = loo_JResp.StringOf("settings.user.language_selection")
ls_Multiple_organizations = loo_JResp.StringOf("settings.user.multiple_organizations")
ls_UserTagging = loo_JResp.StringOf("settings.user.tagging")
ls_Time_zone_selection = loo_JResp.StringOf("settings.user.time_zone_selection")
ls_Agent_confirmation_when_forwarding = loo_JResp.StringOf("settings.voice.agent_confirmation_when_forwarding")
ls_Agent_wrap_up_after_calls = loo_JResp.StringOf("settings.voice.agent_wrap_up_after_calls")
ls_VoiceEnabled = loo_JResp.StringOf("settings.voice.enabled")
ls_Logging = loo_JResp.StringOf("settings.voice.logging")
ls_Maximum_queue_size = loo_JResp.StringOf("settings.voice.maximum_queue_size")
ls_Maximum_queue_wait_time = loo_JResp.StringOf("settings.voice.maximum_queue_wait_time")
ls_Only_during_business_hours = loo_JResp.StringOf("settings.voice.only_during_business_hours")
ls_Outbound_enabled = loo_JResp.StringOf("settings.voice.outbound_enabled")
ls_Recordings_public = loo_JResp.StringOf("settings.voice.recordings_public")
ls_Uk_mobile_forwarding = loo_JResp.StringOf("settings.voice.uk_mobile_forwarding")
i = 0
li_Count_i = loo_JResp.SizeOfArray("settings.cdn.hosts")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Name = loo_JResp.StringOf("settings.cdn.hosts[i].name")
    ls_Url = loo_JResp.StringOf("settings.cdn.hosts[i].url")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("settings.localization.locale_ids")
do while i < li_Count_i
    loo_JResp.I = i
    ls_StrVal = loo_JResp.StringOf("settings.localization.locale_ids[i]")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("settings.rule.skill_based_filtered_views")
do while i < li_Count_i
    loo_JResp.I = i
    ls_In523 = loo_JResp.StringOf("settings.rule.skill_based_filtered_views[i].in523")
    ls_Estc = loo_JResp.StringOf("settings.rule.skill_based_filtered_views[i].estc")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("settings.ticket_sharing_partners.support_addresses")
do while i < li_Count_i
    loo_JResp.I = i
    ls_StrVal = loo_JResp.StringOf("settings.ticket_sharing_partners.support_addresses[i]")
    i = i + 1
loop


destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp

Curl Command

curl  -u login:password -X GET
	-H "Accept: application/json"
https://example.zendesk.com/api/v2/account/settings

Postman Collection Item JSON

{
  "name": "Show Settings",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/account/settings",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "account",
        "settings"
      ]
    },
    "description": "Shows the settings that are available for the account.\n\n#### Allowed For\n\n* Agents\n"
  },
  "response": [
    {
      "name": "Success response",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/account/settings",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "account",
            "settings"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"settings\": {\n    \"active_features\": {\n      \"advanced_analytics\": \"<boolean>\",\n      \"agent_forwarding\": \"<boolean>\",\n      \"allow_ccs\": \"<boolean>\",\n      \"allow_email_template_customization\": \"<boolean>\",\n      \"automatic_answers\": \"<boolean>\",\n      \"bcc_archiving\": \"<boolean>\",\n      \"benchmark_opt_out\": \"<boolean>\",\n      \"business_hours\": \"<boolean>\",\n      \"chat\": \"<boolean>\",\n      \"chat_about_my_ticket\": \"<boolean>\",\n      \"csat_reason_code\": \"<boolean>\",\n      \"custom_dkim_domain\": \"<boolean>\",\n      \"customer_context_as_default\": \"<boolean>\",\n      \"customer_satisfaction\": \"<boolean>\",\n      \"dynamic_contents\": \"<boolean>\",\n      \"explore\": \"<boolean>\",\n      \"explore_on_support_ent_plan\": \"<boolean>\",\n      \"explore_on_support_pro_plan\": \"<boolean>\",\n      \"facebook\": \"<boolean>\",\n      \"facebook_login\": \"<boolean>\",\n      \"fallback_composer\": \"<boolean>\",\n      \"forum_analytics\": \"<boolean>\",\n      \"good_data_and_explore\": \"<boolean>\",\n      \"google_login\": \"<boolean>\",\n      \"insights\": \"<boolean>\",\n      \"is_abusive\": \"<boolean>\",\n      \"light_agents\": \"<boolean>\",\n      \"markdown\": \"<boolean>\",\n      \"on_hold_status\": \"<boolean>\",\n      \"rich_content_in_emails\": \"<boolean>\",\n      \"sandbox\": \"<boolean>\",\n      \"satisfaction_prediction\": \"<boolean>\",\n      \"suspended_ticket_notification\": \"<boolean>\",\n      \"ticket_forms\": \"<boolean>\",\n      \"ticket_tagging\": \"<boolean>\",\n      \"topic_suggestion\": \"<boolean>\",\n      \"twitter\": \"<boolean>\",\n      \"twitter_login\": \"<boolean>\",\n      \"user_org_fields\": \"<boolean>\",\n      \"user_tagging\": \"<boolean>\",\n      \"voice\": \"<boolean>\"\n    },\n    \"agents\": {\n      \"agent_workspace\": \"<boolean>\",\n      \"aw_self_serve_migration_enabled\": \"<boolean>\",\n      \"focus_mode\": \"<boolean>\",\n      \"idle_timeout_enabled\": \"<boolean>\",\n      \"unified_agent_statuses\": \"<boolean>\"\n    },\n    \"api\": {\n      \"accepted_api_agreement\": \"<boolean>\",\n      \"api_password_access\": \"<string>\",\n      \"api_token_access\": \"<string>\"\n    },\n    \"apps\": {\n      \"create_private\": \"<boolean>\",\n      \"create_public\": \"<boolean>\",\n      \"use\": \"<boolean>\"\n    },\n    \"billing\": {\n      \"backend\": \"<string>\"\n    },\n    \"branding\": {\n      \"favicon_url\": \"<string>\",\n      \"header_color\": \"<string>\",\n      \"header_logo_url\": \"<string>\",\n      \"page_background_color\": \"<string>\",\n      \"tab_background_color\": \"<string>\",\n      \"text_color\": \"<string>\"\n    },\n    \"brands\": {\n      \"default_brand_id\": \"<integer>\",\n      \"require_brand_on_new_tickets\": \"<boolean>\"\n    },\n    \"cdn\": {\n      \"cdn_provider\": \"<string>\",\n      \"fallback_cdn_provider\": \"<string>\",\n      \"hosts\": [\n        {\n          \"name\": \"<string>\",\n          \"url\": \"<string>\"\n        },\n        {\n          \"name\": \"<string>\",\n          \"url\": \"<string>\"\n        }\n      ]\n    },\n    \"chat\": {\n      \"available\": \"<boolean>\",\n      \"enabled\": \"<boolean>\",\n      \"integrated\": \"<boolean>\",\n      \"maximum_request_count\": \"<integer>\",\n      \"welcome_message\": \"<string>\"\n    },\n    \"cross_sell\": {\n      \"show_chat_tooltip\": \"<boolean>\",\n      \"xsell_source\": \"<string>\"\n    },\n    \"gooddata_advanced_analytics\": {\n      \"enabled\": \"<boolean>\"\n    },\n    \"google_apps\": {\n      \"has_google_apps\": \"<boolean>\",\n      \"has_google_apps_admin\": \"<boolean>\"\n    },\n    \"groups\": {\n      \"check_group_name_uniqueness\": \"<boolean>\"\n    },\n    \"limits\": {\n      \"attachment_size\": \"<integer>\"\n    },\n    \"localization\": {\n      \"locale_ids\": [\n        \"<integer>\",\n        \"<integer>\"\n      ]\n    },\n    \"lotus\": {\n      \"pod_id\": \"<integer>\",\n      \"prefer_lotus\": \"<boolean>\",\n      \"reporting\": \"<boolean>\"\n    },\n    \"metrics\": {\n      \"account_size\": \"<string>\"\n    },\n    \"onboarding\": {\n      \"checklist_onboarding_version\": \"<integer>\",\n      \"onboarding_segments\": \"<string>\",\n      \"product_sign_up\": \"<string>\"\n    },\n    \"routing\": {\n      \"autorouting_tag\": \"<string>\",\n      \"enabled\": \"<boolean>\",\n      \"max_email_capacity\": \"<integer>\",\n      \"max_messaging_capacity\": \"<integer>\",\n      \"reassignment_messaging_enabled\": \"<boolean>\",\n      \"reassignment_messaging_timeout\": \"<integer>\",\n      \"reassignment_talk_timeout\": \"<integer>\"\n    },\n    \"rule\": {\n      \"macro_most_used\": \"<boolean>\",\n      \"macro_order\": \"<string>\",\n      \"skill_based_filtered_views\": [\n        {\n          \"in523\": 60303840.72385332\n        },\n        {\n          \"estc\": \"eu aliquip id\"\n        }\n      ],\n      \"using_skill_based_routing\": \"<boolean>\"\n    },\n    \"side_conversations\": {\n      \"email_channel\": \"<boolean>\",\n      \"msteams_channel\": \"<boolean>\",\n      \"show_in_context_panel\": \"<boolean>\",\n      \"slack_channel\": \"<boolean>\",\n      \"tickets_channel\": \"<boolean>\"\n    },\n    \"statistics\": {\n      \"forum\": \"<boolean>\",\n      \"rule_usage\": \"<boolean>\",\n      \"search\": \"<boolean>\"\n    },\n    \"ticket_form\": {\n      \"raw_ticket_forms_instructions\": \"<string>\",\n      \"ticket_forms_instructions\": \"<string>\"\n    },\n    \"ticket_sharing_partners\": {\n      \"support_addresses\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"tickets\": {\n      \"accepted_new_collaboration_tos\": \"<boolean>\",\n      \"agent_collision\": \"<boolean>\",\n      \"agent_ticket_deletion\": \"<boolean>\",\n      \"allow_group_reset\": \"<boolean>\",\n      \"assign_default_organization\": \"<boolean>\",\n      \"assign_tickets_upon_solve\": \"<boolean>\",\n      \"auto_updated_ccs_followers_rules\": \"<boolean>\",\n      \"collaboration\": \"<boolean>\",\n      \"comments_public_by_default\": \"<boolean>\",\n      \"email_attachments\": \"<boolean>\",\n      \"emoji_autocompletion\": \"<boolean>\",\n      \"follower_and_email_cc_collaborations\": \"<boolean>\",\n      \"has_color_text\": \"<boolean>\",\n      \"is_first_comment_private_enabled\": \"<boolean>\",\n      \"light_agent_email_ccs_allowed\": \"<boolean>\",\n      \"list_empty_views\": \"<boolean>\",\n      \"list_newest_comments_first\": \"<boolean>\",\n      \"markdown_ticket_comments\": \"<boolean>\",\n      \"maximum_personal_views_to_list\": \"<integer>\",\n      \"private_attachments\": \"<boolean>\",\n      \"rich_text_comments\": \"<boolean>\",\n      \"status_hold\": \"<boolean>\",\n      \"tagging\": \"<boolean>\",\n      \"using_skill_based_routing\": \"<boolean>\"\n    },\n    \"twitter\": {\n      \"shorten_url\": \"<string>\"\n    },\n    \"user\": {\n      \"agent_created_welcome_emails\": \"<boolean>\",\n      \"end_user_phone_number_validation\": \"<boolean>\",\n      \"have_gravatars_enabled\": \"<boolean>\",\n      \"language_selection\": \"<boolean>\",\n      \"multiple_organizations\": \"<boolean>\",\n      \"tagging\": \"<boolean>\",\n      \"time_zone_selection\": \"<boolean>\"\n    },\n    \"voice\": {\n      \"agent_confirmation_when_forwarding\": \"<boolean>\",\n      \"agent_wrap_up_after_calls\": \"<boolean>\",\n      \"enabled\": \"<boolean>\",\n      \"logging\": \"<boolean>\",\n      \"maximum_queue_size\": \"<integer>\",\n      \"maximum_queue_wait_time\": \"<integer>\",\n      \"only_during_business_hours\": \"<boolean>\",\n      \"outbound_enabled\": \"<boolean>\",\n      \"recordings_public\": \"<boolean>\",\n      \"uk_mobile_forwarding\": \"<boolean>\"\n    }\n  }\n}"
    }
  ]
}