Closed deezone closed 8 years ago
@DeeZone isn't this the same as #5913 I don't think that drupal should care if we are sending and mGage opt_in or a mobile commons opt_in, it should just get the id.
@angaither
Perhaps the solution is:
$params['moblie_opt_in'] = [
'id` => 1234,
'keyword` => 'abc'
];
it should just get the id where logic surrounding
user_country
defines which of themobile_opt_in
combinations to use? Thekeyword
would be blank in the case of Mobile Commons being the SMS service of choice.
@deadlybutter Updated issue description to reflect what was discussed in https://github.com/DoSomething/phoenix/issues/5913. Please let know if you have any questions.
will do!
unless you object @angaither I talked with Dee & he said to close this out for now
Important:
When a user signs up, the Mobile Commons
opt_in
value is included in the request message sent to Message Broker.opt_in_id
andopt_in_keyword
need to be added to transactional request sent to Message Broker.dosomething_signup_third_party_subscribe()
: https://github.com/DoSomething/phoenix/blob/dev/lib/modules/dosomething/dosomething_signup/dosomething_signup.module#L451-L466 to lookupopt_in_id
andopt_in_keyword
based onuser_country
. The values are based on:user_country
isUS
use US Mobile Common value foropt_in
.opt_in_keyword
set to NULL.user_country
isCA
use US Mobile Common value foropt_in
.opt_in_keyword
set to NULL. (multisite, may not apply).user_country
isMX
orBR
use mGage values for the country.user_country
notUS
,CA
,MX
orBR
, don't setopt_in_id
andopt_in_keyword
opt_in
value is added to message payload withdosomething_signup_third_party_subscribe()
which needs to include mGageopt_in
andopt_in_keyword
values. Perhaps the new format should be:mc_opt_in_path_id
->mobile_opt_in
Related: