Cloud Girl 2014.06.28 LT

Cloud Girl 2014.06.28 LT

AmazonSNSでモバイルpush通知(内容を一部変更してお届け)

B4666fa6f42fb3b6535efda1230bce34?s=128

kiharu sasaki

August 01, 2014
Tweet

Transcript

  1. 2014.06.28 Kiharu Sasaki

  2.     2

  3. None
  4.    4

  5. 5 枠

  6. 6 枠

  7. 7

  8. 8 Amazon ADM Google GCM Apple APNs Baidu CloudPush Microsoft

    MPNS/WNS Kindle Fire Android iOS Android (China) Windows phone
  9. None
  10. 10     

  11. 11     

  12. 12

  13. 13 _人人人人人人人_ > アーラン!!! <  ̄^Y^Y^Y^Y^Y^Y^Y ̄

  14. 14 SNS Topic1 EP3 (メールアドレス) EP4 (メールアドレス) Topic2 EP3 (メールアドレス)

    EP2 (device token) Apps EP1 (device token) EP2 (device token)
  15. 15 SDK • AWS SDK for Android • AWS SDK

    for iOS • AWS SDK for Java • AWS SDK for JavaScript • AWS SDK for .NET • AWS SDK for PHP • AWS SDK for Python • AWS SDK for Ruby
  16. 16 require_once ('aws.phar'); // ARN $AppArn = 'XXXXXXXXXXXXXXXXXXXX'; // Amazon

    SNS $sns = Aw\Sns\SnsClient::factory(array( 'key' => 'XXXXXXXXXXXXXXXXXX', 'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'region' => 'ap-northeast-1' )); // $Model = $sns->listEndpointsByPlatformApplication(array('PlatformApplicationArn' => $AppArn)); // (publish) foreach ($Model['Endpoints'] as $Endpoint) { $EndpointArn = $Endpoint['EndpointArn']; try { $sns->publish(array( 'Message' => 'Hello from PHP', 'TargetArn' => $EndpointArn )); } catch (Exception $e) { // } }
  17.    17

  18.    18

  19.   19

  20. None