====
github.com/progorker =_============
_ __ _ _ ___ __ _ ___ _ _| |_____ _ _
| '_ \ '_/ _ \/ _` / _ \ '_| / / -_) '_|
| .__/_| \___/\__, \___/_| |_\_\___|_|
=|_|===========|___/======================
API References of myTestor
----- oOo -----
[function] api_testor_has_right
==========================================
-------|__/-------------------------
SYNTAX
------------------------------------
function api_testor_has_right (
p_token varchar(36),
p_right_code varchar(64)
)
returns int
----------------------------
p_right_code
----------------------------
+ 'api_call'
+ 'user_make'
+ 'user_demo'
+ 'storage_full'
-------|__/-------------------------
USAGE
------------------------------------
$) set @v_token = '_'; call api_testor_login( @v_token, 'mytestor', 'rzutomqahegpnyx' ); select @v_token;
----------------------------
+----------------------------------+
| @v_token |
+----------------------------------+
| 52a49370db50e54c02ec8956b981fab4 |
+----------------------------------+
----------------------------
$) set @v_right = api_testor_has_right( '52a49370db50e54c02ec8956b981fab4', 'api_call' ); select @v_right;
----------------------------
+----------+
| @v_right |
+----------+
| 1 |
+----------+
----------------------------