Comments (5)
Please help. I am also stuck. Can we also unsubscribe subscriber from specific list?
from fuelsdk-ruby.
@fmorton - Were you able to get over it?
from fuelsdk-ruby.
I get this as well. Still an issue 2 years later.
from fuelsdk-ruby.
Unsubscribing a user works for me. The lists the subscriber is a member of can be accessed as a property of the Subscriber object:
subscriber = FuelSDK::Subscriber.new
subscriber.client = FuelSDK::Client.new({
'client' => {
'id' => [EXACTTARGET_CONFIG_ID],
'secret' => [EXACTTARGET_CONFIG_SECRET]
}
})
subscriber.props =
{
"EmailAddress" => [EMAIL ADDRESS],
"Lists" => [{ 'ID' => [LIST ID], "Status" => 'Unsubscribed }]
}
Then you can update the subscriber using subscriber.patch
.
from fuelsdk-ruby.
Time to close this from 4 years ago.
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.