Giter Site home page Giter Site logo

Comments (8)

rahilsondhi avatar rahilsondhi commented on July 22, 2024 2

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 do properties instead you get TypeError: 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.

creatovisguru avatar creatovisguru commented on July 22, 2024

@rahilsondhi, would you mind contributing these changes and submitting a pull request with these improvements?

from fuelsdk-ruby.

kirandc avatar kirandc commented on July 22, 2024

@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.

tkauble avatar tkauble commented on July 22, 2024

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.

kirandc avatar kirandc commented on July 22, 2024

@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.

tkauble avatar tkauble commented on July 22, 2024

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.

kirandc avatar kirandc commented on July 22, 2024

@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.

kellyjandrews avatar kellyjandrews commented on July 22, 2024

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)

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.