Download the PHP package primas/node without Composer
On this page you can find all versions of the php package primas/node. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package node
Primas SDK of PHP (v3)
- Primas Node API Documentation https://github.com/primasio/primas-api-doc
Rely
Sign with a signature machine
Sign with the keystore
- ext-scrypt: https://github.com/DomBlack/php-scrypt
- ext-secp256k1: https://github.com/Bit-Wasp/secp256k1-php
- ext-keccak: https://github.com/EricYChu/php-keccak-hash
Install
- 1、Use Git to clone the entire repository in the root folder, or export a zip of the repository and extract locally.
- 2、composer require primas/node
Quick Start
- Note: the API configuration needs to be initialized before using the API method
- If you need a large integer, use it as a string
Example
create root account
- Remember to save the root account id
Factory
1、static method
2、config introduce
- An array type
API List
- Content APIs
- Content Licensing
- Content Format
- 1. Get content metadata
- 2. Get raw content
- 3. Post content
- 4. Update content
- Content Interaction APIs
- 1. Get share metadata
- 2. Get the shares of a group share
- 3. Get share reports
- 4. Report share
- 5. Get the likes of a group share
- 6. Like a group share
- 7. Cancel the like of a group share
- 8. Get the comments of a group share
- 9. Get replying comments of a comment
- 10. Comment a group share
- 11. Update the comment of a group share
- 12. Delete the comment of a group share
- Group APIs
- 1. Get group metadata
- 2. Create group
- 3. Update group
- 4. Dismiss group
- 5. Get group members
- 6. Join group
- 7. Approve or decline member application
- 8. Quit group or kick member out
- 9. Get group member whitelist
- 10. Add group member whitelist
- 11. Approve or decline group member whitelist
- 12. Quit group member whitelist
- 13. Get group shares
- 14. Share to a group
- 15. Approve or decline share application
- 16. Delete group share
- 17. Get group avatar metadata
- 18. Get group avatar raw image
- Account APIs
- 1. Get account metadata
- 2. Create account
- 3. Update account metadata
- 4. Get account credits list
- 5. Get account content list
- 6. Get account groups list
- 7. Get account shares
- 8. Get account shares in a single group
- 9. Get account likes
- 10. Get account comments
- 11. Get account group applications
- 12. Get account share applications
- 13. Get account report list
- 14. Get account notifications
- 15. Get account avatar metadata
- 16. Get account avatar raw image
- Token APIs
- 1. Get account tokens data
- 2. Get incentives list
- 3. Get incentives statistics list
- 4. Get incentives withdrawal list
- 5. Withdraw incentives
- 6. Get token pre-lock list
- 7. Pre-lock tokens
- 8. Unlock pre-locked tokens
- 9. Get token lock list
- Timeline APIs
- 1. Get account timeline
- Query APIs
- 1. Query all APIs
- System APIs
- 1. Get system parameters
- Node APIs
- 1. Get node list
Error Code and Troubleshooting
result_code | result_msg | description |
---|---|---|
0 | success | Success |
400 | client error | Client error |
401 | invalid data | Invalid post data |
402 | parse input JSON format error | Invalid JSON string |
403 | client signature error | Signature verification failed |
404 | input parameter error | Invalid parameter |
405 | input parameter empty | Empty parameter |
406 | nonce less than lasted | Nonce is used before |
500 | server error | Server error |
All versions of node with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
ext-gmp Version *
ext-scrypt Version ~1.4
ext-secp256k1 Version ^0.1.3
ext-keccak Version ~0.2
guzzlehttp/guzzle Version ~6.0
bitwasp/buffertools Version ^0.5.0
ext-gmp Version *
ext-scrypt Version ~1.4
ext-secp256k1 Version ^0.1.3
ext-keccak Version ~0.2
guzzlehttp/guzzle Version ~6.0
bitwasp/buffertools Version ^0.5.0
The package primas/node contains the following files
Loading the files please wait ....