canvas-tools 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/canvas-addusers.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a1f48d0917ba5cb220bb3ed0318ca77d94a9894
|
4
|
+
data.tar.gz: f41c176c94925e426a06d8a0cf079538aab3667a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72021a13b63daf2dbf5fe069f1eada0e19e47499232b85874980d7284f37309c42c25ffa63cf662547419588a0f528c955a7df4b993bda6b7c66c5748084bb9a
|
7
|
+
data.tar.gz: 9306e025d64306e12220a6208a3d6a850e79209fcfb3d8f3bd96b83475ead2e7ca68b664c585ff273bfb49ec7fbb6116c2786adf679010da817162db391d26ed
|
data/exe/canvas-addusers.rb
CHANGED
@@ -7,7 +7,7 @@ require 'fileutils'
|
|
7
7
|
require 'rest-client'
|
8
8
|
require 'csv'
|
9
9
|
require 'console_table'
|
10
|
-
|
10
|
+
require 'pp'
|
11
11
|
|
12
12
|
@config_file = "#{ENV["HOME"]}/.canvas-tools.json"
|
13
13
|
@active_config = ""
|
@@ -150,7 +150,7 @@ def create_user(sis_id,full_name,email)
|
|
150
150
|
"pseudonym[send_confirmation]" => true,
|
151
151
|
}
|
152
152
|
begin
|
153
|
-
RestClient.post "#{sel_config["
|
153
|
+
RestClient.post "#{sel_config["url"]}/api/v1/accounts/#{sel_config["account_id"]}/users?access_token=#{sel_config["token"]}", parms, :accept => :json
|
154
154
|
rescue RestClient::RequestFailed => e
|
155
155
|
puts "The request failed with HTTP status code #{e.response.code}"
|
156
156
|
puts "The body was:"
|