$status (SData)
De Wiki1000
(Différences entre les versions)
m (a déplacé Status (SData) vers $status (SData)) |
|||
(3 révisions intermédiaires par un utilisateur sont masquées) | |||
Ligne 7 : | Ligne 7 : | ||
Exemple : | Exemple : | ||
+ | |||
+ | '''Réponse si l'utilisateur est connecté:''' | ||
<pre> | <pre> | ||
− | https:// | + | https://hostname/service/server/sdata/$status |
OK | OK | ||
− | {"result":{"params":{"sessionid":371066993,"username":"sage","userfullname":"Utilisateur sage","userlanguage":"FRA","useremail":"","groupname":"","authdirname":"Sage1000","socname":"Démo - Sage FRP 1000 Immobilisation","appname":"Sage FRP 1000 Immobilisations","glbShareEnable":"true","glbShareRestitution":"false","glbShareAllPerimeters":"false","glbShareRestitutionName":"","glbShareSocieties":"C454815E5BEE000200FC0000000D0048","glbSharePerimeters":"C454815E5BEE000200A50000004C0002,C454815E5BEE000200FC0000000D0048, | + | { |
+ | "result":{ | ||
+ | "params":{ | ||
+ | "sessionid":371066993, | ||
+ | "username":"sage", | ||
+ | "userfullname":"Utilisateur sage", | ||
+ | "userlanguage":"FRA", | ||
+ | "useremail":"", | ||
+ | "groupname":"", | ||
+ | "authdirname":"Sage1000", | ||
+ | "socname":"Démo - Sage FRP 1000 Immobilisation", | ||
+ | "appname":"Sage FRP 1000 Immobilisations", | ||
+ | "glbShareEnable":"true", | ||
+ | "glbShareRestitution":"false", | ||
+ | "glbShareAllPerimeters":"false", | ||
+ | "glbShareRestitutionName":"", | ||
+ | "glbShareSocieties":"C454815E5BEE000200FC0000000D0048", | ||
+ | "glbSharePerimeters":"C454815E5BEE000200A50000004C0002,C454815E5BEE000200FC0000000D0048,.....,C454815E5BEE000200FC000000C00002", | ||
+ | "glbShareGroupMode":"false", | ||
+ | "glbShareGroupPerimeter":"C454815E5BEE000200A50000004C0002", | ||
+ | "glbShareSocietyPerimeter":"C454815E5BEE000200FC0000000D0048", | ||
+ | "GlbShareSocietyName":"S2", | ||
+ | "GlbSharePerimeterNames":"Dossier,S2,PCG,Services,Tiers Services,Assujetti Partiel", | ||
+ | "GlbShareSocietyNames":"S2", | ||
+ | "GlbShareAutorized":{ | ||
+ | "society":[ | ||
+ | { | ||
+ | "title":"S1", | ||
+ | "oid":"C454815E5BEE000200FC0000000D000B" | ||
+ | }, | ||
+ | { | ||
+ | "title":"S2", | ||
+ | "oid":"C454815E5BEE000200FC0000000D0048" | ||
+ | }, | ||
+ | { | ||
+ | "title":"S3", | ||
+ | "oid":"C454815E5BEE000200FC0000000D0086" | ||
+ | }, | ||
+ | { | ||
+ | "title":"S4", | ||
+ | "oid":"C454815E5BEE000200FC0000002E0066" | ||
+ | } | ||
+ | ] | ||
+ | }, | ||
+ | "ShareState":"C454815E5BEE000200A50000004C0002;1;0;0;0;0;0;0;0;.........C454815E5BEE00020075000001410001;;", | ||
+ | "ShareSociety":"C454815E5BEE000200FC0000000D0048", | ||
+ | "ShareSocietyName":"S2", | ||
+ | "ShareRestitution":"false", | ||
+ | "ShareAllPerimeters":"false", | ||
+ | "ShareResitutionSocieties":"", | ||
+ | "ShareStateCaption":"S2", | ||
+ | "database":"Production", | ||
+ | "databases":[ | ||
+ | "Production" | ||
+ | ], | ||
+ | "GA":{ | ||
+ | "dialogUrl":"https://eme.sage.fr/pep/home.html", | ||
+ | "ua":"XXXXXX", | ||
+ | "cd":{ | ||
+ | "dimension1":"000000", | ||
+ | "dimension2":"Sage FRP 1000 Immobilisations", | ||
+ | "dimension4":"0000000000000000000A000000020004", | ||
+ | "dimension5":"7.0.0.0" | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
+ | |||
+ | '''Réponse si l'utilisateur n'est pas connecté:''' | ||
+ | |||
+ | <pre> | ||
+ | { | ||
+ | "ets_auth":true, | ||
+ | "auth_title":"Authentication:", | ||
+ | "login_image":"login-1000", | ||
+ | "login_title":"Connexion à Sage FRP 1000 Immobilisations", | ||
+ | "society_title":"Société", | ||
+ | "user_title":"Utilisateur", | ||
+ | "password_title":"Mot de passe", | ||
+ | "login_button_title":"Se connecter", | ||
+ | "groupe_title":"Groupe", | ||
+ | "change_login":"Changer votre mot de passe", | ||
+ | "application_caption":"Sage FRP 1000 Immobilisations", | ||
+ | "connexion_caption":"Se connecter", | ||
+ | "deconnexion_caption":"Se déconnecter", | ||
+ | "authentication":"", | ||
+ | "register":"Demander un accès", | ||
+ | "recaptcha":"", | ||
+ | "old_password":"Ancien mot de passe", | ||
+ | "new_password":"Nouveau mot de passe", | ||
+ | "new_password_bis":"Confirmation mot de passe", | ||
+ | "form_caption":"Changer le mot de passe ...", | ||
+ | "button_OK":"OK", | ||
+ | "button_Cancel":"Annuler", | ||
+ | "password_nomatch":"Erreur dans la confirmation du mot de passe.", | ||
+ | "connexion_caption2":"Se connecter avec un compte Sage FRP 1000", | ||
+ | "connexion_caption3":"Ou bien se connecter avec votre compte :", | ||
+ | "oauth2_directories":"", | ||
+ | "society_list":[ | ||
+ | "Démo - Sage FRP 1000 Immobilisation" | ||
+ | ], | ||
+ | "auth_list":[ | ||
+ | "Sage1000=Annuaire d'entreprise" | ||
+ | ] | ||
+ | } | ||
</pre> | </pre> | ||
Version actuelle en date du 17 août 2017 à 09:43
Cette fonction de service permet de retrouver le statut de la connexion d'un utilisateur.
L'url de cette fonction est :
http://www.example.com/service/server/sdata/$status
Exemple :
Réponse si l'utilisateur est connecté:
https://hostname/service/server/sdata/$status OK { "result":{ "params":{ "sessionid":371066993, "username":"sage", "userfullname":"Utilisateur sage", "userlanguage":"FRA", "useremail":"", "groupname":"", "authdirname":"Sage1000", "socname":"Démo - Sage FRP 1000 Immobilisation", "appname":"Sage FRP 1000 Immobilisations", "glbShareEnable":"true", "glbShareRestitution":"false", "glbShareAllPerimeters":"false", "glbShareRestitutionName":"", "glbShareSocieties":"C454815E5BEE000200FC0000000D0048", "glbSharePerimeters":"C454815E5BEE000200A50000004C0002,C454815E5BEE000200FC0000000D0048,.....,C454815E5BEE000200FC000000C00002", "glbShareGroupMode":"false", "glbShareGroupPerimeter":"C454815E5BEE000200A50000004C0002", "glbShareSocietyPerimeter":"C454815E5BEE000200FC0000000D0048", "GlbShareSocietyName":"S2", "GlbSharePerimeterNames":"Dossier,S2,PCG,Services,Tiers Services,Assujetti Partiel", "GlbShareSocietyNames":"S2", "GlbShareAutorized":{ "society":[ { "title":"S1", "oid":"C454815E5BEE000200FC0000000D000B" }, { "title":"S2", "oid":"C454815E5BEE000200FC0000000D0048" }, { "title":"S3", "oid":"C454815E5BEE000200FC0000000D0086" }, { "title":"S4", "oid":"C454815E5BEE000200FC0000002E0066" } ] }, "ShareState":"C454815E5BEE000200A50000004C0002;1;0;0;0;0;0;0;0;.........C454815E5BEE00020075000001410001;;", "ShareSociety":"C454815E5BEE000200FC0000000D0048", "ShareSocietyName":"S2", "ShareRestitution":"false", "ShareAllPerimeters":"false", "ShareResitutionSocieties":"", "ShareStateCaption":"S2", "database":"Production", "databases":[ "Production" ], "GA":{ "dialogUrl":"https://eme.sage.fr/pep/home.html", "ua":"XXXXXX", "cd":{ "dimension1":"000000", "dimension2":"Sage FRP 1000 Immobilisations", "dimension4":"0000000000000000000A000000020004", "dimension5":"7.0.0.0" } } } } }
Réponse si l'utilisateur n'est pas connecté:
{ "ets_auth":true, "auth_title":"Authentication:", "login_image":"login-1000", "login_title":"Connexion à Sage FRP 1000 Immobilisations", "society_title":"Société", "user_title":"Utilisateur", "password_title":"Mot de passe", "login_button_title":"Se connecter", "groupe_title":"Groupe", "change_login":"Changer votre mot de passe", "application_caption":"Sage FRP 1000 Immobilisations", "connexion_caption":"Se connecter", "deconnexion_caption":"Se déconnecter", "authentication":"", "register":"Demander un accès", "recaptcha":"", "old_password":"Ancien mot de passe", "new_password":"Nouveau mot de passe", "new_password_bis":"Confirmation mot de passe", "form_caption":"Changer le mot de passe ...", "button_OK":"OK", "button_Cancel":"Annuler", "password_nomatch":"Erreur dans la confirmation du mot de passe.", "connexion_caption2":"Se connecter avec un compte Sage FRP 1000", "connexion_caption3":"Ou bien se connecter avec votre compte :", "oauth2_directories":"", "society_list":[ "Démo - Sage FRP 1000 Immobilisation" ], "auth_list":[ "Sage1000=Annuaire d'entreprise" ] }