level3-api 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/level3_rtm_stats +1 -1
- metadata +1 -1
data/bin/level3_rtm_stats
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'level3-api'
|
4
4
|
require 'json'
|
5
5
|
|
6
|
-
l3 =
|
6
|
+
l3 = Level3Api.new(ENV['LEVEL3APIKEY'],ENV['LEVEL3APISECRET'])
|
7
7
|
accessgroups = l3.request('/accessGroups',"/v1.0") # --TODO assuming only 1 for now
|
8
8
|
stats = l3.request('/rtm/cdn',"/v1.0/#{accessgroups['id']}","GET",{'serviceType'=>'c','property'=>'true'})
|
9
9
|
puts JSON.pretty_generate stats
|