DoSomething / legacy-website

:moyai: The DoSomething.org legacy website.
https://www.dosomething.org/
MIT License
50 stars 22 forks source link

Expand third party subscription to include Mobile Commons and mGage #5939

Closed deezone closed 8 years ago

deezone commented 8 years ago

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 and opt_in_keyword need to be added to transactional request sent to Message Broker.

  if ($params['mobile'] && $opt_in && !$user_is_old) {
    $params['moblie_opt_in'] = {
      'opt_in_id` => 1234,
      'opt_in_keyword` => abc,
  };

Related:

angaither commented 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.

deezone commented 8 years ago

@angaither

5913 was a "#discussion" which felt like it was getting long. This issue is my effort to define the tech. Once the tech solution is clear we can close #5913.

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 the mobile_opt_in combinations to use? The keyword would be blank in the case of Mobile Commons being the SMS service of choice.

deezone commented 8 years ago

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

itsjoekent commented 8 years ago

will do!

itsjoekent commented 8 years ago

unless you object @angaither I talked with Dee & he said to close this out for now