Sha256: 28014a2fced7c11cce51df5c264822309181284c677adc1877341c9e3d084d0c
Contents?: true
Size: 1.25 KB
Versions: 3
Compression:
Stored size: 1.25 KB
Contents
# This file was auto-generated by lib/tasks/web.rake desc 'UsersProfile methods.' command 'users_profile' do |g| g.desc 'This method is used to get the profile information for a user.' g.long_desc %( This method is used to get the profile information for a user. ) g.command 'get' do |c| c.flag 'user', desc: 'User to retrieve profile info for.' c.flag 'include_labels', desc: 'Include labels for each ID in custom profile fields.' c.action do |_global_options, options, _args| puts JSON.dump($client.users_profile_get(options)) end end g.desc 'This method is used to set the profile information for a user.' g.long_desc %( This method is used to set the profile information for a user. ) g.command 'set' do |c| c.flag 'user', desc: 'ID of user to change. This argument may only be specified by team admins on paid teams.' c.flag 'profile', desc: 'Collection of key:value pairs presented as a URL-encoded JSON hash.' c.flag 'name', desc: 'Name of a single key to set. Usable only if profile is not passed.' c.flag 'value', desc: 'Value to set a single key to. Usable only if profile is not passed.' c.action do |_global_options, options, _args| puts JSON.dump($client.users_profile_set(options)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-0.8.0 | bin/commands/users_profile.rb |
slack-ruby-client-0.7.9 | bin/commands/users_profile.rb |
slack-ruby-client-0.7.8 | bin/commands/users_profile.rb |