Class: PipedrivePUT::Users
- Inherits:
-
Object
- Object
- PipedrivePUT::Users
- Includes:
- PipedrivePUT
- Defined in:
- lib/PipedrivePUT/users.rb
Constant Summary
Constants included from PipedrivePUT
Instance Attribute Summary
Attributes included from PipedrivePUT
Class Method Summary collapse
-
.getAllUsers ⇒ Object
Get All Users for organization.
Methods included from PipedrivePUT
Class Method Details
.getAllUsers ⇒ Object
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 |