examples/personal_access_token.rb in asana-2.0.0 vs examples/personal_access_token.rb in asana-2.0.1
- old
+ new
@@ -11,11 +11,11 @@
client = Asana::Client.new do |c|
c.authentication :access_token, access_token
end
puts "My Workspaces:"
-client.workspaces.find_all.each do |workspace|
+client.workspaces.get_workspaces.each do |workspace|
puts "\t* #{workspace.name} - tags:"
- client.tags.find_by_workspace(workspace: workspace.id).each do |tag|
+ client.tags.get_tags_for_workspace(workspace: workspace.id).each do |tag|
puts "\t\t- #{tag.name}"
end
end