Ruby example - UserService1.svc/GetEnabledUsers

require 'rest-client'

require 'json'

company_key="companyKey" # Enter any company key

 

# Global service call

GlobalResponse= RestClient.post "https://global.replicon.com/DiscoveryService1.svc/GetTenantEndpointDetails", {

  :tenant=> {

    :uri=> nil,

   :slug=> nil,

    :companyKey=> company_key

  }

}.to_json, :content_type => :json, :accept => :json

 

parsed = JSON.parse(GlobalResponse.body)

Endpoint= parsed["d"]["applicationRootUrl"]

 

#Get Enabled users

GetEnabledusers=RestClient::Request.execute method: :post, url: Endpoint+company_key+"/services/UserService1.svc/GetEnabledUsers", user: company_key, 'X-Replicon-Application':'Companykey_ProjectImport_1.0', 'Authorization': 'Bearer lXluv1eGYEGzMwjpsRL5mgEANTNkYTAyZWM5OWU2NDg2MWFmZWVjZDM3MzAxZjA1NTA'

puts GetEnabledusers.body

Related links

Code examples
Introduction to the Replicon API
Using the API
Getting started with Replicon's API
Viewing the available API operations