Download the PHP package exinonefix/laravel-mixin-sdk-fix without Composer
On this page you can find all versions of the php package exinonefix/laravel-mixin-sdk-fix. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download exinonefix/laravel-mixin-sdk-fix
More information about exinonefix/laravel-mixin-sdk-fix
Files in exinonefix/laravel-mixin-sdk-fix
Package laravel-mixin-sdk-fix
Short Description MixinNetwork SDK for Laravel
License MIT
Informations about the package laravel-mixin-sdk-fix
Laravel-Mixin-SDK
MixinNetwork SDK for Laravel 5
Requirement
Laravel
>= 5.1Composer
PHP
>= 7.0
Installation
Configuration
-
Add the provider and facade in
config/app.php
, Laravel 5.5+ supports package discovery automatically, you should skip this step. -
Publish configuration
-
You can configure it with any of methods below.
-
Edit
config/mixin-sdk.php
and.env
:these configurations will be automatically loaded.
If you don't want your private key stored in the VCS,refer to link
-
else you can call it as follows:
- You can also use your own way packing them up in your project to make it easy to switch configs.
-
Use
Run
code | description | module | Mixin Network Docs |
---|---|---|---|
MixinSDK::pin()->updatePin($oldPin, $pin) |
Update Pin code | Pin | link |
MixinSDK::pin()->verifyPin($pin) |
Verify Pin code | Pin | link |
--- | -- | -- | |
--- | -- | -- | |
--- | -- | -- | |
MixinSDK::user()->readProfile() |
Read self profile | User | link |
MixinSDK::user()->updateProfile(string $full_name, string $avatar_base64 = '') |
Update user’s profile. | User | link |
MixinSDK::user()->updatePreferences(string $receive_message_source, string $accept_conversation_source) |
Update user’s preferences. | User | link |
MixinSDK::user()->rotateQRCode() |
Rotate user’s code_id. | User | link |
MixinSDK::user()->readFriends() |
Get user’s friends. | User | link |
--- | -- | -- | |
--- | -- | -- | |
--- | -- | -- | |
MixinSDK::wallet()->createAddress(string $asset_id, string $public_key, $pin, $label, bool $isEOS = false) |
Create an address for withdrawal | Wallet | link |
MixinSDK::wallet()->readAddresses(string $assetId) |
Read addresses by asset ID. | Wallet | link |
MixinSDK::wallet()->readAddress(string $addressId) |
Read an address by ID. | Wallet | link |
MixinSDK::wallet()->deleteAddress(string $addressId, $pin) |
Delete an address by ID. | Wallet | link |
MixinSDK::wallet()->readAssets() |
Read user’s all assets. | Wallet | link |
MixinSDK::wallet()->readAsset(string $assetId) |
Read asset by ID. | Wallet | link |
MixinSDK::wallet()->deposit(string $assetId) |
Gant an asset’s deposit address (The api same as wallet()->readAsset ) |
Wallet | link |
MixinSDK::wallet()->withdrawal(string $addressId, $amount, $pin, $memo = '', $tracd_id = null) |
Get assets out of Mixin Network | Wallet | link |
MixinSDK::wallet()->transfer(string $assetId, string $opponentId, $pin, $amount, $memo = '', $tracd_id = null) |
Transfer of assets between Mixin Network users. | Wallet | link |
MixinSDK::wallet()->verifyPayment(string $asset_id, string $opponent_id, $amount, string $trace_id) |
Verify a transfer | Wallet | link |
MixinSDK::wallet()->readTransfer(string $traceId) |
Read transfer by trace ID. | Wallet | link |
MixinSDK::wallet()->readAssetFee(string $assetId) |
Read transfer fee | Wallet | null |
MixinSDK::wallet()->readUserSnapshots($limit = null, string $offset = null, string $asset = '', string $order = 'DESC') |
Get user's all snapshots. | Wallet | link |
MixinSDK::wallet()->readUserSnapshot(string $snapshotId) |
Get user's a snapshots by ID. | Wallet | link |
--- | -- | -- | |
--- | -- | -- | |
--- | -- | -- | |
MixinSDK::network()->readUser( $userId) |
Get user’s information by ID. | Network | /api/beta-mixin-message/read-user/ |
MixinSDK::network()->readUsers(array $userIds) |
Get users information by IDs. | Network | link |
MixinSDK::network()->searchUser($item) |
Search user by ID. | Network | link |
MixinSDK::network()->readNetworkAsset(string $assetId) |
Read public asset information by ID from Mixin Network. | Network | link |
MixinSDK::network()->readNetworkSnapshots($limit = null, string $offset = null, string $asset = '', string $order = 'DESC') |
Read public snapshots of Mixin Network. | Network | link |
MixinSDK::network()->readNetworkSnapshot(string $snapshotId) |
Read public snapshots of Mixin Network by ID. | Network | link |
MixinSDK::network()->createUser($fullName) |
Create a new Mixin Network user | Network | link |
MixinSDK::network()->externalTransactions($asset, $public_key, $limit, $offset, $account_name) |
Read external transactions | Network | link |
MixinSDK::network()->createAttachments() |
Create an attachment upload address. | Network | link |
MixinSDK::network()->mixinNetworkChainsSyncStatus() |
Get Mixin Network Chains Synchronize status | Network | null |
MixinSDK::network()->topAsset() |
top asset | Network | /api/alpha-mixin-network/network/ |
MixinSDK::network()->requestAccessToken(string $code) |
use code request access token | Network | /guides |
MixinSDK::network()->accessTokenGetInfo(string $access_token) |
use access token get info | Network | /guides |
MixinSDK::network()->accessTokenGetAssets(string $access_token) |
use access token get assets info | Network | /guides |
MixinSDK::network()->accessTokenGetContacts(string $access_token) |
use access token get contact info | Network | /guides |
MixinSDK::network()->searchAssets(string $snapshotId) |
search assets | Network | link |
--- | -- | -- | |
--- | -- | -- | |
--- | -- | -- | |
MixinSDK::message()->sendText($user_id, $data, $category , $conversation_id) |
send text | Message | /api/beta-mixin-message/websocket-messages/ |
MixinSDK::message()->sendContact($user_id, $contact_id, $category, $conversation_id) |
send user card | Message | /api/beta-mixin-message/websocket-messages/ |
MixinSDK::message()->sendAppButtonGroup($user_id, $data, $category, $conversation_id) |
send App Button Group (max three) | Message | /api/beta-mixin-message/websocket-messages/ |
MixinSDK::message()->sendAppCard($user_id, $data, $category, $conversation_id) |
send App Card | Message | /api/beta-mixin-message/websocket-messages/ |
MixinSDK::message()->askMessageReceipt($message_id) |
ask Message Receipt | Message | /api/beta-mixin-message/websocket-messages/ |
MixinSDK::message()->sendBatchMessage($user_id, $data, $category , $conversation_id) |
send batch message | Message | /api/beta-mixin-message/websocket-messages/ |
--- | -- | -- | |
--- | -- | -- | |
--- | -- | -- | |
MixinSDK::getOauthUrl($client_id, string $scope) |
Get Oauth Url | other | link |
MixinSDK::getPayUrl($asset_id, $amount, $trace_id, $memo, $client_id = null) |
generate a pay Url | other | /guides |
MixinSDK::getConfig($configGroupName='') |
read config | other | null |
Exceptions
If MixinNetwork response with an error,An Exception ExinOne\MixinSDK\Exceptions\MixinNetworkRequestException
will be thrown. Developers need to capture and handle this exception.
Other Exceptions
class | description |
---|---|
ExinOne\MixinSDK\Exceptions\MixinNetworkRequestException |
Api request fail |
ExinOne\MixinSDK\Exceptions\NotFoundConfigException |
not found config set |
ExinOne\MixinSDK\Exceptions\LoadPrivateKeyException |
private Key error |
ExinOne\MixinSDK\Exceptions\ClassNotFoundException |
class not found |
WARNING
-
You can config
iterator
in the following way. Theiterator
is used when a PIN is encrypted. Generally,iterator
should not be modified. If you want ot modify this variable, be sure to know what you are doing. More details on iterator - Get raw Recponse content
Alternatives
LICENSE
MIT
All versions of laravel-mixin-sdk-fix with dependencies
ext-openssl Version *
ext-zlib Version *
php Version ^7.1.3
exinone/mixin-sdk-php Version *
illuminate/support Version ^5.1