Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update card.getAddresses method to retrieve from API #140

Merged
merged 1 commit into from
Sep 2, 2016

Conversation

nunorafaelrocha
Copy link
Collaborator

@nunorafaelrocha nunorafaelrocha commented Sep 1, 2016

This PR updates the card.getAddresses method by removing the $addresses property from the model which no longer is provided on the /me/cards/:cardId.

Now, when the user calls the card.getAddresses method a request is made to the Uphold's API which retrieves the card's list of addresses.

@nunorafaelrocha nunorafaelrocha force-pushed the enhancement/card-get-addresses branch 7 times, most recently from 3205c7c to f720cff Compare September 1, 2016 16:51
@@ -177,8 +172,6 @@ public function createCryptoAddress($network)
{
$response = $this->client->post(sprintf('/me/cards/%s/addresses', $this->id), array('network' => $network));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to assign the api response?

@nunorafaelrocha nunorafaelrocha force-pushed the enhancement/card-get-addresses branch from f720cff to b5bd10d Compare September 2, 2016 06:12
@nunorafaelrocha nunorafaelrocha force-pushed the enhancement/card-get-addresses branch from b5bd10d to 8550854 Compare September 2, 2016 06:22
@joaonice joaonice merged commit 5d5722a into master Sep 2, 2016
@joaonice joaonice deleted the enhancement/card-get-addresses branch September 2, 2016 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants