class PipedrivePUT::Users

Public Class Methods

getAllUsers() click to toggle source

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

# 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