Giter Club home page Giter Club logo

marketo's Introduction

= Marketo

== Setup

Create a config/marketo.yml file:
access_key: "bigcorp1_461839624B16E06BA2D663"
secret_key: "899756834129871744AAEE88DDCC77CDEEDEC1AAAD66"

Be sure to substitute your Marketo access_key and secret_key for the values above.

== Usage

Create anew Marketo Client passing your access_key and secret_key from your marketo.yml file.
client = Marketo::Client.new_marketo_client(access_key, secret_key)

To get a user by id use the client created above. Call get_lead_by_id passing an IDNUM. This will return a lead record.
client.get_lead_by_id(IDNUM)

To get a user by email address use the client created above. Call get_lead_by_email passing an EMAIL_ADDR. This will return a lead record.
client.get_lead_by_email(EMAIL_ADDR)

To sync a lead with Marketo. Use the client created above. Call sync_lead passing: email_address, the Marketo Cookie, and a hash of attributes.
The Marketo cookie: request.cookies["_mkto_trk"]
client.sync_lead(USER[:email], COOKIE, {"FirstName"=>USER[:first_name],
                                        "LastName"=>USER[:last_name],
                                        "Company"=>"Backupify"})

To add a lead to a Marketo List. Use the client created above. Call add_lead_to_list passing: the lead records IDNUM and the list name.
client.add_lead_to_list(IDNUM, "Inbound Signups")


== Note on Patches/Pull Requests

I would be extremely happy to accept contributions to this project!  If you think something should work differently, send me a message and I'd love to discuss your ideas.  Even better:

* Fork the project.
* Make your feature addition or bug fix.
* Add specs for it. This is important so I don't break it in a future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request.

== Current Contributors

* {John Kelly}[http://github.com/jwkellyiii]

marketo's People

Stargazers

Maciej Adwent avatar Eric Holmes avatar Vijayaraj avatar jk avatar T.J. Schuck avatar Josh Eveleth avatar Josh King avatar

Watchers

jk avatar James Cloos avatar ghostinthewell avatar David Everly avatar Tsuyoshi Miyashita avatar

marketo's Issues

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.