Class: PipedrivePUT::Users

Inherits:
Object
  • Object
show all
Includes:
PipedrivePUT
Defined in:
lib/PipedrivePUT/users.rb

Constant Summary

Constants included from PipedrivePUT

VERSION

Instance Attribute Summary

Attributes included from PipedrivePUT

#key

Class Method Summary collapse

Methods included from PipedrivePUT

getKey, key

Class Method Details

.getAllUsersObject

Get All Users for organization. Might have to loop through such as uptop if have more than what comes in.



7
8
9
10
11
12
13
# File 'lib/PipedrivePUT/users.rb', line 7

def self.getAllUsers
  @base = 'https://api.pipedrive.com/v1/users?api_token=' + @@key.to_s

  @content = open(@base.to_s).read
  @parsed = JSON.parse(@content)
  return @parsed["data"]
end