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

Add project structure #1

Merged
merged 1 commit into from
Jan 22, 2015
Merged

Add project structure #1

merged 1 commit into from
Jan 22, 2015

Conversation

nunorafaelrocha
Copy link
Collaborator

No description provided.

@nunorafaelrocha nunorafaelrocha force-pushed the feature/add-project-structure branch 2 times, most recently from 1adda32 to 7d5928b Compare January 12, 2015 18:18
{
"name": "bitreserve/bitreserve-sdk-php",
"type": "library",
"description": "Bitreserve SDK PHP for Bitreserve API v0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove v0.

@nunorafaelrocha nunorafaelrocha force-pushed the feature/add-project-structure branch 4 times, most recently from 5e9bea7 to 5f3b094 Compare January 13, 2015 18:27
*
* @param null|HttpClientInterface $httpClient Bitreserve http client
*/
public function __construct($personalAccessToken = null, HttpClientInterface $httpClient = null)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need to get the client in the constructor?

@fixe
Copy link
Contributor

fixe commented Jan 13, 2015

@nunorafaelrocha please add an examples directory and a few basic examples to README.

*/
class ErrorException extends \ErrorException implements ExceptionInterface
{

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this line.

{
$data = $this->get('/ticker');

return array_reduce($data, function($tickers, $ticker) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a map, not a reduce.

@nunorafaelrocha nunorafaelrocha force-pushed the feature/add-project-structure branch 4 times, most recently from ae94db8 to 867d5f1 Compare January 22, 2015 22:04
->with('/me/transactions')
->will($this->returnValue($data));

$user = new User($client, array('username' => 'han.solo'));
Copy link
Contributor

Choose a reason for hiding this comment

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

foobar

public function getHeader($header = null)
{
if ($this->loopCount) {
$header = sprintf('<https://api.bitreserve.org/%d>; rel="next"', $this->loopCount);
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we using this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope

fixe added a commit that referenced this pull request Jan 22, 2015
@fixe fixe merged commit f7db2af into master Jan 22, 2015
@fixe fixe deleted the feature/add-project-structure branch January 22, 2015 22:28
@ernaneluis ernaneluis mentioned this pull request Dec 20, 2015
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.

None yet

3 participants