Skip to content

Commit

Permalink
Resolve #774
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Jul 6, 2017
1 parent aec68fe commit df9c3d0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/POI/POI.php
Expand Up @@ -91,6 +91,16 @@ public function create(array $data)
return $this->parseJSON('json', [self::API_CREATE, $params]);
}

/**
* @param array $data
*
* @return int
*/
public function createAndGetId(array $data)
{
return $this->create($data)['poi_id'];
}

/**
* Update a POI.
*
Expand Down

0 comments on commit df9c3d0

Please sign in to comment.