Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Commit fc6f9c9

Browse files
committed
Fixed a typo and added method
1 parent 8326cf5 commit fc6f9c9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/Swipbox/Client.php

+14-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function find_active_favorites( Array $params )
125125
*/
126126
public function find_near_to_favorite( Array $params )
127127
{
128-
return $this->_execute('find_active_favorites', $params);
128+
return $this->_execute('find_near_to_favorite', $params);
129129
}
130130

131131
/**
@@ -139,6 +139,19 @@ public function find_by_zip( Array $params )
139139
{
140140
return $this->_execute('find_by_zip', $params);
141141
}
142+
143+
/**
144+
* Get the details of a specific station
145+
*
146+
* @param Array $params An array of parameters as specified in the docs.
147+
* @throws \Swipbox\Exception
148+
* @return Array A decoded JSON array
149+
*/
150+
public function get_station_by_id( Array $params )
151+
{
152+
return $this->_execute('get_station_by_id', $params);
153+
}
154+
142155

143156
/**
144157
* Track the parcels trip

0 commit comments

Comments
 (0)