sparkapi / sparkapi4p2

A PHP wrapper for the flexmls REST API.
GNU General Public License v3.0
26 stars 28 forks source link

GetMyAccount has no $params available for "_expand" #16

Closed donclem closed 12 years ago

donclem commented 12 years ago

This is a simple one, but the function GetMyAccount is missing a $params array, even though it can accept an "_expand" option.

Old Code

    function GetMyAccount() {
    return $this->return_first_result($this->MakeAPICall("GET", "my/account", '1h'));
}

New Code

    function GetMyAccount($params = array()) {
    return $this->return_first_result($this->MakeAPICall("GET", "my/account", '1h', $params));
}
joshcom commented 12 years ago

Pull request #17 merged.