samrap / gemini Goto Github PK
View Code? Open in Web Editor NEWA Gemini API client for PHP developers.
License: MIT License
A Gemini API client for PHP developers.
License: MIT License
This is the class the end user will interact with to send requests to the Gemini API.
https://github.com/samrap/gemini/blob/master/src/Gemini.php#L132 should call privateRequest
not cancelOrder
Currently, when an exception that is not covered in the Gemini docs is thrown, such as "Bad Request", a generic message is displayed. It would be nicer if we still got the response error's reason
and message
in the generic GeminiException
's message.
Hello @samrap
We are getting the Invalid signature error while call the getActiveOrders method. As I seen, I need to call the getActiveOrders method without parameter, I'm also following the same process.
Kindly check my code and help me out to solve the problem.
require gemini/autoload.php';
use Samrap\Gemini\Gemini;
$gemini = new Gemini($this->key, $this->secret);
$orders = $gemini->getActiveOrders();
Type: Samrap\Gemini\Exceptions\InvalidSignatureException
Message: InvalidSignature
Filename: gemini/samrap/gemini/src/Gemini.php
Line Number: 316
Backtrace:
File: gemini/samrap/gemini/src/Gemini.php
Line: 285
Function: createExceptionFromResponse
File: gemini/samrap/gemini/src/Gemini.php
Line: 264
Function: send
Thank you in advance.
The Payload
class should accept the parameters required for an API payload and support methods for converting to JSON, array, and the base64 encoded version required for the actual API request.
The Signature
class will handle the logic required for generating a signature for the API request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.