Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_business_intelligence_token
- if Rails.env.production?
- begin
- token = RestClient.get("#{ENV['BI_AZURE_URL']}/GetToken?agent=#{@resource.email}")
- rescue => error
- token = error.response
- end
- return JSON.parse(token)["token"]
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement