Skip to content

Commit

Permalink
Add pass templates listing
Browse files Browse the repository at this point in the history
It's now possible to get the list of created passes templates.

* New method : listTemplates
  • Loading branch information
kevin39 committed May 13, 2014
1 parent 20ce726 commit 7522ff0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/PassSlot.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
Expand Down Expand Up @@ -182,6 +183,16 @@ public function listPasses($passType = null) {
}
return $this->_restCall("GET", $resource);
}

/**
* Returns descriptions of all created passes templates
*
* @return array
*/
public function listTemplates() {
$resource = "/templates";
return $this->_restCall("GET", $resource);
}

/**
* Downloads the pkpass file
Expand Down

0 comments on commit 7522ff0

Please sign in to comment.