Comments (8)
Got it working like this: π₯
subscriber.properties = {
'EmailAddress' => '[email protected]',
'Lists' => [{'ID' => LISTID}],
'Attributes' => [
{'Name' => 'Full Name', 'Value' => 'John Doe'}
]
}
Things that should be fixed to make this more clear:
- This documentation is wrong on this page. Line 6 in the screenshot results in
NoMethodError: undefined method props for #<FuelSDK::Subscriber:0x00000108d62668>
and if you doproperties
instead you getTypeError: no implicit conversion of String into Integer
π©- However, this section on the same page is very helpful and that info should be included in this gem somewhere.
- The sample files included in this gem (possibly profile attributes and add subscriber to list) should include an example of creating a subscriber with attributes.
from fuelsdk-ruby.
@rahilsondhi, would you mind contributing these changes and submitting a pull request with these improvements?
from fuelsdk-ruby.
@rahilsondhi @creatovisguru Can you tell me how can I get profile attributes list.
I need profile attributes list to map with my application fields. I am refering this API https://code.exacttarget.com/apis-sdks/fuel-sdks/index.html. In that I not found to get list of profile attributes
Thanks in advance.
from fuelsdk-ruby.
Try looking at this sample: https://github.com/ExactTarget/FuelSDK-Ruby/blob/master/samples/sample-profileattribute.rb
There is code in there that retrieves attributes.
from fuelsdk-ruby.
@tkauble I checked that example but I am getting error on this line
getProfileAttribute = ET_ProfileAttribute.new
NameError: uninitialized constant ET_ProfileAttribute
I am using fuelsdk (0.1.0) gem. Is it any issue with gem version?
from fuelsdk-ruby.
Did you try to run the test β you could just comment out the parts other than the retrieve. If the test doesnβt run at all, it more than likely is a gem conflict β let me know!
From: kiran <[email protected]mailto:[email protected]>
Reply-To: ExactTarget/FuelSDK-Ruby <[email protected]mailto:[email protected]>
Date: Thursday, December 11, 2014 at 1:14 PM
To: ExactTarget/FuelSDK-Ruby <[email protected]mailto:[email protected]>
Cc: Tim Kauble <[email protected]mailto:[email protected]>
Subject: Re: [FuelSDK-Ruby] How to create a subscriber with properties/profile attributes? (#25)
@tkaublehttps://github.com/tkauble I checked that example but I am getting error on this line
getProfileAttribute = ET_ProfileAttribute.new
NameError: uninitialized constant ET_ProfileAttribute
I am using fuelsdk (0.1.0) gem. Is it any issue with gem version?
β
Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-66662628.
from fuelsdk-ruby.
@tkauble
I checked it's conflict with gem version. Now I have fork master branch and using this and now it's working.
Where you planning to release latest changes.
Thanks for your help
from fuelsdk-ruby.
We should in the future try to use StackExchange for these types of issues as well - http://salesforce.stackexchange.com/questions/tagged/marketing-cloud
Thanks!
from fuelsdk-ruby.
Related Issues (20)
- [BUG] Gem doesn't work on servers which don't have git installed
- [BUG] HTTP::TimeoutError Write timed out after 0.25 second
- [Required Update]
- [BUG] - 400 response when inserting or updating Data Extension rows HOT 2
- Open SSL Connection reset by peer HOT 3
- SSL_connect error in all Marketing Cloud API requests
- Connection reset by peer - SSL_connect
- CI through Travis
- Rubocop
- Please delete dead code
- MarketingCloudSDK::TriggeredSend doesn't support client ID
- Additional maintainer? HOT 4
- FuelSDk is showing Error message while sending a POST request HOT 3
- Delete records from Marketing cloud through Rest API
- Sidekiq : Throwing Error Message
- MarketingCloudSDK::Response.continue fails
- Status of this SDK HOT 6
- Please deprecate this repository HOT 2
- Trouble connecting to the client after the April 1st Permission update HOT 3
- Update JSON library to version 2 to 3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuelsdk-ruby.