Coder Social home page Coder Social logo

pypedrive's Introduction

Installing

Clone this repo or use pip:
pip install pypedrive

Using

from pypedrive import Pypedrive

pipedrive = Pypedrive('AUTH_TOKEN')

# Creating organizations, deals, person ...
pipedrive.organizations({  
    'method': 'POST',  
    'name': 'Organization inc.',  
    'phone': '(12) 1231-1412',  
    ...  
})

# You can use lists to update or exclude a bunch of information
pipedrive.persons({  
    'method': 'DELETE',   
    'id': [1,2,3]  
})

For more information about how to use Pipedrive's API, click here.

pypedrive's People

Contributors

hackaugusto avatar orige avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

pypedrive's Issues

GET request - no such method/attribute

I am getting this error:

    Traceback (most recent call last):
      File "<pyshell#10>", line 1, in <module>
        pipedrive.deal_field('936fba7d7033c7e1a0369820f93991f5a3849df7')
      File "C:\Python27\lib\site-packages\pypedrive\__init__.py", line 54, in wrapper
        response = self._request(name, data, method)
      File "C:\Python27\lib\site-packages\pypedrive\__init__.py", line 29, in _request
        id_ = data.get('id')
    AttributeError: 'str' object has no attribute 'get'

When I try to use the command:

pipedrive.deal_field('field_id')

Basically, all of the methods I've tried using (GET, POST, PUT) are being shown as unknown methods/attributes.

Additional examples:

When I use:

pipedrive.dealFields({
    'method': 'GET',
    'id': 'field_id',
    })

It returns:

Traceback (most recent call last):
  File "<pyshell#6>", line 3, in <module>
    'id': '936fba7d7033c7e1a0369820f93991f5a3849df7'})
  File "C:\Python27\lib\site-packages\pypedrive\__init__.py", line 56, in wrapper
    raise PipedriveError(response)
PipedriveError: Unknown method

is it possible to use the find command

I want to find organizations by name for example:

pipedrive.organizations.find({
'method': 'GET',
'term': 'some_name'
})

I keep getting an error function object has no attribute 'find'

Is this supported in the api?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.