Skip to content

Commit

Permalink
Update route fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prasantargetbay committed May 14, 2024
1 parent 2325919 commit 738a42a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@ $activity = $bayRewards->createActivity()->post('<Store-Access-Token>', [
]);
```

### Update the BayReward Activity

```php
use Palpalani\BayRewards\BayRewards;

$bayRewards = BayRewards::client();
$activity = $bayRewards->updateActivity()->post('<Store-Access-Token>', [
"title" => "Title of the Activity name", //required
"icon" => "<Icon URL>", //required
"activity_id" => ******* //required
]);
```

### Update loyalty points

```php
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Store/UpdateActivityRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(protected string $access_token, protected array $dat
*/
public function resolveEndpoint(): string
{
return '/action/store/update';
return '/action/update';
}

protected function defaultHeaders(): array
Expand Down

0 comments on commit 738a42a

Please sign in to comment.