Sha256: f04619f1f52a34f77f1b8b05056c01c490b6f75a5eeae775a18016b5e5ac15cd

Contents?: true

Size: 1.34 KB

Versions: 2

Compression:

Stored size: 1.34 KB

Contents

# This file was auto-generated by lib/tasks/web.rake

desc 'UsersProfile methods.'
command 'users_profile' do |g|
  g.desc "Use this method to retrieve a user's profile information."
  g.long_desc %( Use this method to retrieve a user's profile information. )
  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 "Use this method to set a user's profile information, including name, email, current status, and other attributes."
  g.long_desc %( Use this method to set a user's profile information, including name, email, current status, and other attributes. )
  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

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-0.9.0 bin/commands/users_profile.rb
slack-ruby-client-0.8.1 bin/commands/users_profile.rb