Skip to content

Where do I put require: .. ? #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
moisesnandres opened this issue Dec 10, 2015 · 1 comment
Closed

Where do I put require: .. ? #44

moisesnandres opened this issue Dec 10, 2015 · 1 comment

Comments

@moisesnandres
Copy link

Hi, I'm new on this, do I have to put

require 'pipedrive-ruby'
Pipedrive.authenticate( YOUR_API_TOKEN )
Pipedrive::Deal.find( DEAL_ID )

in the gemfile ?
I have a form and I want to receive the information written there, in my pipedrive, so where do I put require: ... ?

@connorjacobsen
Copy link

require 'pipedrive-ruby' goes in your Gemfile.

If you are using rails, you will want to create an initializer, in a file like config/initializers/pipedrive.rb with the:

# config/initializers/pipedrive.rb
Pipedrive.authenticate( YOUR_API_TOKEN )
Pipedrive::Deal.find( DEAL_ID )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants