constantcontact / ruby-sdk Goto Github PK
View Code? Open in Web Editor NEWConstant Contact Ruby SDK for v2 API
License: Other
Constant Contact Ruby SDK for v2 API
License: Other
method is not implemented
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
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)
not implemented
The Readme on the home page makes reference to 'Mashery'?
I'm completely lost as to what that is.
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.
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
{
"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
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.
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?
Name is not descriptive enough. It will be unclear in a Gemfile what gem 'ruby-sdk'
is.
It will be difficult to search for (try googling it).
And "sdk" == old and clunky to us (open source community).
Can we come up with something expressive and cool?
Some inspiration:
Twitter: https://github.com/sferik/twitter
Youtube: https://github.com/fullscreen/yt
Facebook: https://github.com/arsduo/koala
When I use the API tester for contacts, I see created_date
and modified_date
fields in the JSON response. These don't appear to exist in the results when using this sdk.
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'
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
Docs say to add gem 'constantcontact', '~> 4.1.0'
but https://rubygems.org/gems/constantcontact only lists 4.0.0
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.