Skip to content

Commit 3744175

Browse files
author
Kenny MacKenzie
committed
added TopicArn param to SetTopicAttributes method and updated readme
1 parent 86227fb commit 3744175

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ Create a Topic:
2020

2121
$topicArn = $AmazonSNS->createTopic('My New SNS Topic');
2222

23+
Set the Topic's Display Name (required):
24+
25+
$result = $AmazonSNS->SetTopicAttributes($topicArn, 'DisplayName', 'My SNS Topic Display Name');
26+
2327
Subscribe to this topic:
2428

2529
$AmazonSNS->subscribe($topicArn, 'email', 'example@github.com');

lib/amazonsns.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ public function setTopicAttributes($topicArn, $attrName, $attrValue)
373373

374374
$resultXml = $this->_request('SetTopicAttributes', array
375375
(
376+
'TopicArn' => $topicArn,
376377
'AttributeName' => $attrName,
377378
'AttributeValue' => $attrValue
378379
)

0 commit comments

Comments
 (0)