You are here

public function Mollie_API_Resource_Base::get in Commerce Mollie 7

Retrieve information on a single resource from Mollie.

Will throw a Mollie_API_Exception if the resource cannot be found.

Parameters

string $resource_id:

Return value

object

Throws

Mollie_API_Exception

File

Mollie/API/Resource/Base.php, line 179

Class

Mollie_API_Resource_Base
Copyright (c) 2013, Mollie B.V. All rights reserved.

Code

public function get($resource_id) {
  return $this
    ->rest_read($this
    ->getResourceName(), $resource_id);
}