Git Product home page Git Product logo

ruby-sdk's People

Contributors

aguriuc avatar alexandru1 avatar csciuto avatar dsjellz avatar egaiter avatar gshiftlabs-dbuttineau avatar gshiftlabs-jsteel avatar innonagle avatar jorge8989 avatar mapalumbo avatar pcai avatar richm541 avatar shannon7wallace avatar sioachim avatar thegravee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruby-sdk's Issues

uninitialized constant ConstantContact::SDK

Hi,

I'm trying to use your gem in my Rails app and I'm getting the following error message:

uninitialized constant ConstantContact::SDK

This appears to be because version.rb is not included in the gem and doing so locally seems to fix the issue.

Thanks,
Alex

Dependency issue

To upgrade to Ruby 2.4 we need update rest-client, but we can't because of constantcontact. Any suggestion?

Bundler could not find compatible versions for gem "rest-client":
  In Gemfile:
    rest-client (~> 2.0.0)

    constantcontact (~> 1.3.1) was resolved to 1.3.2, which depends on
      rest-client (>= 1.6.7, ~> 1.6)

What is 'Mashery'?

The Readme on the home page makes reference to 'Mashery'?

I'm completely lost as to what that is.

Remove Middle Name field

As mentioned in #63 , the Ruby SDK shows the old middle-name field. This field is deprecated and invisible in the UI and doesn't seem to be supported for some accounts at this point. We should remove it from the SDK.

Incomplete Account info accesors

The gem should have accessors for all data.
Currently the only accesable attributes are :

attr_accessor :website, :organization_name, :first_name, :last_name, :email, :phone, :country_code, :state_code

https://github.com/constantcontact/ruby-sdk/blob/master/lib/constantcontact/components/account/account_info.rb

{
    "website":"http://www.example.com",
    "organization_name":"My Company",
    "time_zone":"US/Eastern",
    "first_name":"Mary Jane",
    "last_name":"Doe",
    "email":"[email protected]",
    "phone":"5555555555",
    "company_logo":"https://ih.constantcontact.com/fs137/1100371573368/img/90.jpg",
    "country_code":"US",
    "state_code":"MA",
    "organization_addresses":[
        {
        "city": "Anytown",
        "line1":"123 Maple Street",
        "postal_code":"11111",
        "country_code":"US",
        "state_code":"MA"
        }
    ]
}

https://github.com/constantcontact/ruby-sdk/blob/master/spec/fixtures/account_info_response.json

Stale gem dependency

Bundler could not find compatible versions for gem "mime-types":
  In snapshot (Gemfile.lock):
    mime-types (= 2.4.3)

  In Gemfile:
    constantcontact (~> 2.0.0) ruby depends on
      mime-types (>= 1.25.1, ~> 1.25) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Multi-tenancy support?

Hey there.

We're implementing constant contact in a multi-tenant app using subdomains for account separation (like basecamp and slack). With other OAuth-based API's like HubSpot, we are able to pass in a redirect URL per tenant/account - like https://{tenant_1}.ourapp.com for tenant 1, and https://{tenant_2}.ourapp.com for tenant 2, so they would redirected to the proper account.

It seems as though we're limited in this case because the redirect URL has to be registered with Mashery and can't be passed in for each access token call?

Is there any way to get around this? Has anyone ever brought up this issue before?

What would we have to do as it stands - register multiple Mashery apps per client that wants to use Constant Contact with our software? Is that OK / doable?

Gem does not exist on rubygems.org

This gem doesnt exist on rubygems.org which means you can't just put

gem 'constantcontact'

in your Gemfile.

Instead you need:

gem 'constantcontact', :git => 'git://github.com/constantcontact/ruby-sdk.git'

Gem Version dependency Issue

Hey CC team!!

experiencing this current issue when I bundle install:

Bundler could not find compatible versions for gem "mime-types":
  In snapshot (Gemfile.lock):
    mime-types (= 1.25.1)

  In Gemfile:
    paperclip (>= 0) ruby depends on
      mime-types (>= 0) ruby

    stripe (>= 0) ruby depends on
      rest-client (~> 1.4) ruby depends on
        mime-types (< 3.0, >= 1.16) ruby

    rails (= 4.1.4) ruby depends on
      actionmailer (= 4.1.4) ruby depends on
        mail (~> 2.5.4) ruby depends on
          mime-types (~> 1.16) ruby

    constantcontact (~> 2.2.0) ruby depends on
      mime-types (>= 2.4.1, ~> 2.4) ruby

Then I tried bundle update:

Bundler could not find compatible versions for gem "mime-types":
  In Gemfile:
    rails (= 4.1.4) ruby depends on
      actionmailer (= 4.1.4) ruby depends on
        mail (~> 2.5.4) ruby depends on
          mime-types (~> 1.16) ruby

    constantcontact (~> 2.2.0) ruby depends on
      mime-types (>= 2.4.1, ~> 2.4) ruby

    mime-types (< 3.0, >= 1.16) ruby

Add an example for creating new contacts

Listing existing contacts is okay, but what I need to do is make a form for adding new email subscribers.

I've been trying to extrapolate how to do this based on the documentation and examples, but they don't seem to cover anything like this.

Add support for modified since in #get_contacts_from_list

It doesn't appear that there's any way to get recently modified contacts from a list using the SDK (but I can using the API tester):

contacts = cc.get_contacts_from_list(list_id, {
  limit: 500,
  modified_since: (Date.current - 90.days).strftime('%Y-%m-%d')
})

# => RestClient::BadRequest: 400 Bad Request

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.