code520 token message Token invalide data accounts . Bavarder sur Internet; All classifieds . All classifiedsVeux Veux Pas free classified ads Website Come and visit our site already
Docs Appwrite uses conventional HTTP response codes to indicate the success or failure of an API request. In general Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided a required parameter was omitted, invalid input, etc.. Codes in the 5xx range indicate an error with the Appwrite server, but these are rare. Code Text Description 200 OK Success! 201 Created The requested resource has been created successfully. 204 No Content The server has successfully fulfilled the request and that there is no additional content to send in the response payload body. This status will usually return on successful delete operations. 301 Moved Permanently The URL of the requested resource has been changed permanently. The new URL is given in the response. 304 Not Modified There was no new data to return. 400 Bad Request The request was invalid or cannot be otherwise served. An accompanying error message will explain further. Requests with wrong or invalid input will yield this response. 401 Unauthorized Missing or incorrect authentication credentials can happen when the API key or user permission is not sufficient. 403 Forbidden The request is understood, but it has been refused, or access is not allowed. An accompanying error message will explain why. Make sure to register your app in your project's dashboard platform list. 404 Not Found The URI requested is invalid or the resource requested, such as a user, does not exist. 409 Conflict This response is sent when a request conflicts with the current state of the server. This status code will usually appear when you're trying to create an already existing resource. 416 Invalid Range Invalid value in the range or content-range headers. Usually returned while uploading or downloading files using range header but the provided range value is not valid. 429 Too Many Requests Returned in when a request cannot be served due to the application’s rate limit having been exhausted for the resource. See Rate Limits 500 Internal Server Error Something is broken. Contact our team, or raise a GitHub issue. 501 Not Implemented The feature is not implemented. Usually returned when the project owner has disabled an auth method or an entire service. 503 Service Unavailable The Appwrite servers are up but overloaded with requests. Try again later. 504 Gateway timeout The Appwrite servers are up, but the request couldn’t be serviced due to some failure within the stack. Try again later. Error MessagesWhen the Appwrite APIs return error messages, it does so in JSON format. For example, an error might look like this { "message" "Invalid id Parameter must be a valid number", "type" "argument_invalid", "code" 400 } Error Types Appwrite also passes convenient error types in addition to the HTTP response codes to help you get more fine grained control over what went wrong and allowing you to display relevant error messages in your applications. Error types are are convenient to identify the type of error that occurred. For eg A 400 HTTP response code could indicate a Bad Request due to a variety of reasons and error types can help you pinpoint the exact 400 error. Appwrite currently supports the following error types Code Type Description 400 general_mock General errors thrown by the mock controller used for testing. 400 general_argument_invalid The request contains one or more invalid arguments. Please refer to the endpoint documentation. 400 general_query_limit_exceeded Query limit exceeded for the current attribute. Usage of more than 100 query values on a single attribute is prohibited. 400 general_query_invalid The query's syntax is invalid. Please check the query and try again. 400 general_cursor_not_found The cursor is invalid. This can happen if the item represented by the cursor has been deleted. 400 user_password_mismatch Passwords do not match. Please check the password and confirm password. 400 user_phone_not_found The current user does not have a phone number associated with their account. 400 storage_device_not_found The requested storage device could not be found. 400 storage_file_empty Empty file passed to the endpoint. 400 storage_file_type_unsupported The file type is not supported. 400 storage_invalid_file_size The file size is either not valid or exceeds the maximum allowed size. Please check the file or the value of the _APP_STORAGE_LIMIT environment variable. 400 storage_invalid_content_range The content range is invalid. Please check the value of the Content-Range header. 400 build_not_ready Build with the requested ID is builing and not ready for execution. 400 build_in_progress Build with the requested ID is already in progress. Please wait before you can retry. 400 collection_limit_exceeded The maximum number of collections has been reached. 400 document_invalid_structure The document structure is invalid. Please ensure the attributes match the collection definition. 400 document_missing_payload The document payload is missing. 400 attribute_unknown The attribute required for the index could not be found. Please confirm all your attributes are in the available state. 400 attribute_not_available The requested attribute is not yet available. Please try again later. 400 attribute_format_unsupported The requested attribute format is not supported. 400 attribute_default_unsupported Default values cannot be set for array and required attributes. 400 attribute_limit_exceeded The maximum number of attributes has been reached. 400 attribute_value_invalid The attribute value is invalid. Please check the type, range and value of the attribute. 400 index_limit_exceeded The maximum number of indexes has been reached. 400 project_unknown The project ID is either missing or not valid. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used. 400 project_invalid_success_url Invalid URL received for OAuth success redirect. 400 project_invalid_failure_url Invalid URL received for OAuth failure redirect. 400 project_missing_user_id Failed to obtain user ID from the OAuth provider. 401 general_access_forbidden Access to this API is forbidden. 401 general_unauthorized_scope The current user or API key does not have the required scopes to access the requested resource. 401 user_jwt_invalid The JWT token is invalid. Please check the value of the X-Appwrite-JWT header to ensure the correct token is being used. 401 user_blocked The current user has been blocked. You can unblock the user from the Appwrite console. 401 user_invalid_token Invalid token passed in the request. 401 user_email_not_whitelisted The user's email is not part of the whitelist. Please check the _APP_CONSOLE_WHITELIST_EMAILS environment variable of your Appwrite server. 401 user_ip_not_whitelisted The user's IP address is not part of the whitelist. Please check the _APP_CONSOLE_WHITELIST_IPS environment variable of your Appwrite server. 401 user_invalid_credentials Invalid credentials. Please check the email and password. 401 user_anonymous_console_prohibited Anonymous users cannot be created for the console project. 401 user_session_already_exists Creation of anonymous users is prohibited when a session is active. 401 user_unauthorized The current user is not authorized to perform the requested action. 401 team_invalid_secret The team invitation secret is invalid. 401 team_invite_mismatch The invite does not belong to the current user. 401 domain_verification_failed Domain verification for the requested domain has failed. 403 general_unknown_origin The request originated from an unknown origin. If you trust this domain, please list it as a trusted platform in the Appwrite console. 403 storage_invalid_file The uploaded file is invalid. Please check the file and try again. 404 general_route_not_found The requested route was not found. Please refer to the docs and try again. 404 user_not_found User with the requested ID could not be found. 404 user_session_not_found The current user session could not be found. 404 team_not_found Team with the requested ID could not be found. 404 team_invite_not_found The requested team invitation could not be found. 404 team_membership_mismatch The membership ID does not belong to the team ID. 404 membership_not_found Membership with the requested ID could not be found. 404 avatar_set_not_found The requested avatar set could not be found. 404 avatar_not_found The request avatar could not be found. 404 avatar_image_not_found The requested image was not found at the URL. 404 avatar_remote_url_failed Failed to fetch favicon from the requested URL. 404 avatar_icon_not_found The requested favicon could not be found. 404 storage_file_not_found The requested file could not be found. 404 storage_bucket_not_found Storage bucket with the requested ID could not be found. 404 function_not_found Function with the requested ID could not be found. 404 function_runtime_unsupported The requested runtime is either inactive or unsupported. Please check the value of the _APP_FUNCTIONS_RUNTIMES environment variable. 404 build_not_found Build with the requested ID could not be found. 404 deployment_not_found Deployment with the requested ID could not be found. 404 execution_not_found Execution with the requested ID could not be found. 404 collection_not_found Collection with the requested ID could not be found. 404 document_not_found Document with the requested ID could not be found. 404 attribute_not_found Attribute with the requested ID could not be found. 404 index_not_found Index with the requested ID could not be found. 404 project_not_found Project with the requested ID could not be found. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used. 404 webhook_not_found Webhook with the requested ID could not be found. 404 key_not_found Key with the requested ID could not be found. 404 platform_not_found Platform with the requested ID could not be found. 404 domain_not_found Domain with the requested ID could not be found. 409 user_already_exists A user with the same email ID already exists in your project. 409 user_email_already_exists Another user with the same email already exists in the current project. 409 user_phone_already_exists A user with the same phone number already exists in the current project. 409 team_invite_already_exists The current user has already received an invitation to join the team. 409 storage_bucket_already_exists A storage bucket with the requested ID already exists. 409 collection_already_exists A collection with the requested ID already exists. 409 document_already_exists Document with the requested ID already exists. 409 attribute_already_exists Attribute with the requested ID already exists. 409 index_already_exists Index with the requested ID already exists. 409 domain_already_exists A Domain with the requested ID already exists. 412 user_password_reset_required The current user requires a password reset. 412 project_provider_disabled The chosen OAuth provider is disabled. You can enable the OAuth provider using the Appwrite console. 416 storage_invalid_range The requested range is not satisfiable. Please check the value of the Range header. 429 general_rate_limit_exceeded Rate limit for the current endpoint has been exceeded. Please try again after some time. 500 general_unknown An unknown error has occured. Please check the logs for more information. 500 general_server_error An internal server error occurred. 500 general_protocol_unsupported The request cannot be fulfilled with the current protocol. Please check the value of the _APP_OPTIONS_FORCE_HTTPS environment variable. 501 user_count_exceeded The current project has exceeded the maximum number of users. Please check your user limit in the Appwrite console. 501 user_auth_method_unsupported The requested authentication method is either disabled or unsupported. Please check the supported authentication methods in the Appwrite console. 501 project_provider_unsupported The chosen OAuth provider is unsupported. Please check the docs for the complete list of supported OAuth providers. 503 general_service_disabled The requested service is disabled. You can enable the service from the Appwrite console. 503 general_smtp_disabled SMTP is disabled on your Appwrite instance. You can learn more about setting up SMTP in our docs. 503 general_phone_disabled Phone provider is not configured. Please check the _APP_PHONE_PROVIDER environment variable of your Appwrite server. 520(520) Token Tracker on HecoInfo shows the price of the Token $0.00, total supply 520, number of holders 69 and updated information of the token. The token tracker page also shows the analytics and historical data. HT: $9.74 (-0.80%) Home; Blockchain. Top Accounts; View Txns; View Pending Txns; View Contract Internal Txns; View Blocks; Forked Blocks (Reorgs) View
Data Integration API error codes HTTP Status code Message 400 //Upload a file failed because no filename found in parameters {“missingParam” {“message” “Missing required request parameters filename”}} 401 //Upload a file failed because filename in parameters already existed{“fileExists” {“message” “File already exists”}} 401 //Access token is missing or expired {“message” “Unauthorised”} 500 //Get a download link or list of files failed with server error{“internalError” {“message” “An internal error occurred”}} 500 //Delete a file from the download folder failed with server error{“message” “error message text”} HTTP Status code Message 400 //a required parameter is missing { message “Missing required request parameters” } 400 //grant_type has another value as “authorization_code” or “refresh_token” { message “Invalid grant type” } 403 //Disabled app { message “The application registered on Sage Business Cloud is disabled” } 403 //the authorization request is still waiting for an approval of the customer { message “The pairing request has not been accepted.” } 403 //the expired date of the authorization request has expired { message “The request has expired.” } 403 //there is no authorization request related to the code provided { message “Pairing request not found” } 404 //No entreprise management configuration has been found with code provided { message “Could not associate the requested url with an customer application registered on Sage Business Cloud” } 404 //There is no application corresponding to the client_id provided { message “Could not associate the values with an active application registered on Sage Business Cloud” } 404 //There is no application corresponding to the redirect_uri provided or the grant_type is not “refresh_token” { message “Could not associate the values with an application registered on Sage Business Cloud” } 501 //unknown error { message “An internal error occurred “ + err } 501 //no existing key for the encryption used in the token lambda { message “There is no existing key” } 501 //error during a pairing request deletion { message “Error while deleting the pairing request” } 501 //error during a refresh token storage { message “Error while storing refresh token” } HTTP Status code Message 403 //the refresh token has not been found { message “Could not associate the refresh token with an existing token registered on Sage Business Cloud” } 403 //the refresh token will be deleted { message “The refresh token is flagged as to be deleted” } 403 //values are missing in the verified JWT token { message “Missing timing in token” } 403 //token expired { message “Token has expired” }
Newphishing technique: device code authentication. What is device code authentication. Phishing with device code authentication. 1. Connecting to /devicecode endpoint. 2. Creating a phishing email. 3. “Catching the fish” - victim performs the authentication.
Email already in use When calling the auth URL you are redirected to your callback with the following query parameters error=Invalid+request& reason=Email+already+in+use Please make sure to sign up a new trial account for the desired country using the links in the table above. You cannot use your Sage Developer Account for signing into Sage Accounting, as it is not linked to any business. If you cannot see the country selection page during the authorization process, please visit to clear all cookies before the authorization with Sage Accounting. Ensure that the business you are signing in with belongs to the same country you select on the country page. Otherwise, you will get this error returned as well. Token Refresh, Token Exchange Status Code 400 - Invalid Grant Getting a 400 HTTP error response during token exchange POST with { "error" "invalid_grant" } This is often caused by the token or code used being invalid or having expired. It will expire after 60 seconds and is for a single use. It could also be caused by the grant type, which must be set to authorization_code or refresh_token depending on what you are using. One other potential cause is that the redirect_uri used in the request does not match the one registered exactly. It must match character for character. API Calls Status Code 401 - Authorization Failure No active subscription. MSE [ { "$severity" "error", "$dataCode" "AuthorizationFailure", "$message" "No active subscription. MSE", "$source" "" } ] This means the trial period of the business has expired or the business has canceled their subscription to Accounting. When this happens with the business you are developing with, we kindly recommend signing up a new business with a fresh trial period. Status Code 403 - Forbidden [ { "$severity" "error", "$dataCode" "MultiUserAccessDenied", "$message" "The current user is not allowed to access that resource with that method.", "$source" "" } ] In access rights are implemented allowing any user to authenticate and make requests of the modules of Accounting they have been given permission to use. A 403 message can be thrown if the user does not have the required permission to make a request Read only access to contacts would result in an error if a POST request was sent. To manage the access rights for users you can access the Settings option and then Manage Users in the Sage Accounting application. Status Code 404 - Not Found If you encounter this error, it is normally caused by making a request using an invalid or incorrect endpoint. For example A client has used an invalid id of the requested resource or even called an unknown resource customers instead of contacts. Status Code 500 - Unexpected Error Oh no, it happened again. [ { "$severity" "error", "$dataCode" "UnexpectedError", "$message" "An unexpected error occurred.", "$source" "" } ] While the green path within the API is thoroughly tested, some edge cases may result in such 500 error responses. This may be unsatisfying, but the only short term solution we can offer is to play around with input parameters and see if you can get the request back on the green path. The longer term solution is to inform us and help us to deliver a fix more quickly by providing additional information, like the request Id, the request body or other circumstance that help us to reproduce the error. We do monitor 500 responses and constantly try to reduce them, but in many occasions this additional information really helps us.
520Token (520) Token Tracker on BscScan shows the price of the Token $0.00, total supply 1,000,000,000,000,000, number of holders 15 and updated information of the token. The token tracker page also shows the analytics and historical data.
by Sudheesh ShettyA sample authentication flowEvery application we come across today implements security measures so that the user data is not misused. Security is always something that is changing and evolving. Authentication is one of the essential part of every are various ways to authenticate the user. Let us discuss token based authentication using application. For this, we will be using JSON Web are JSON Web Tokens JWT?JSON Web Tokens JWT is a standard that defines a compact and self-contained way for securely transmitting information between parties as a JSON Smaller size so that easily It contains all information about the Do they work?When a user sends a request with required parameters like username and password. The application checks if username and password are valid. On validation, the application will create a token using a payload and a secret key. It will then send the token back to the user to store and send it with each request. When user sends request with this token, application verifies validity with same secret key. If the token is valid, the request is served, else the application will send an appropriate error Generation FlowStructureBasic structure of JWT is something likeheader payload signatureheader It contains token type and algorithm used to make signature. Gets encoded to Any custom user data like username and Hash of encoded header, payload and a secret of JWTSingle Key There is no need for database calls every time to verify the user. A single secret key will decode tokens provided by any Same token can be used among different domains or different platforms. All it needs is the Expire One can set expiration time using JWT. After that time JWT can we do it?We are going to build a application with few routes and authenticate them using tokens. Basic knowledge of and javascript is 1 — Open terminal. Start a new project in a directorycd authnpm initThis will start a new project. Process will ask for certain information. Provide all the details required. Process will create and it will look something like this.{ "name" "auth", "version" " "description" "application to explain authentication", "main" " "scripts" { "test" "echo \"Error no test specified\" && exit 1" }, "author" "Your name", "license" "ISC"}Step 2 — Install the dependencies. Again go back to terminal and paste the following install express body-parser jsonwebtoken -saveexpress web application To get parameters from our POST To create and verify installing the dependencies. Our will look something like this{ "name" "auth", "version" " "description" "application to explain authentication", "main" " "scripts" { "test" "echo \"Error no test specified\" && exit 1" }, "author" "Your name", "license" "ISC", "dependencies" { "body-parser" "^ "express" "^ "jsonwebtoken" "^ }}Step 3 — Create serverLet us create a server, serving at port 3000 which sends the when / route is called. We will also create /login API which authenticates the user and a /getusers API which gives list of users. Let’s create dummy data for now and store it in the users’ array. You may also replace them with database 4 — Build the ClientLet us create a client using HTML, Bootstrap and JavaScript. Our client has two parts login screen and a place to retrieve users. Login screen will contain text boxes for email and password and a button to send request. We will also add a text box and button to pass the token and get list of 5 — Start the applicationnode our app secure?No, you might see that even if you don’t pass the token you can get the list of all users. We have not implemented authentication yet. Let’s add authentication to /getusers API so that users with valid token can retrieve users to Add Authentication?Include JWT to the jwt=require'jsonwebtoken';2. Pass the payloadany object, here pass the user object itself and a secret string to sign function and create a token= When the token is created successfully pass the same to can then store token on client side and pass it every time during the session to authenticate. Let’s change the “getlist” function so that we can pass token to the server when we want to access users add a middleware to authenticate /getusers or any secure route that is added in future. Make sure that all routes that needs authentication is below the first we have login route which creates token. After that we have middleware which we will use to verify the token. All the routes which needs authentication are after middleware. The order is very To decode, you pass the token and secret key to verify function. Function will return error if the token is invalid or success if token is //your logic}Call next so that respective routes are will look like thisFinal will look like thisThat’s it. This is a simple example of how to use token to authenticate your app. I have put the complete code on GitHub. You may check it to JWT_Auth development by creating an account on for reading and do follow me and recommend the same to others by clicking on ♡ . My twitter handle is sudheeshshetty. Learn to code for free. freeCodeCamp's open source curriculum has helped more than 40,000 people get jobs as developers. Get started Tokenbased authentication. To make a web API call from a client such as a mobile application, you must supply an access token on the call. The token acts like an electronic key that lets you access the API. Magento issues the following types of access tokens: Token type. Description. Default lifetime.
Created March 13, 2017 Category Troubleshooting Comments 31 When you schedule a posts on Pilot Poster, in some rare cases, the scheduled posts might hit a hard rock on the way due to some reasons, and among the common reasons for a scheduled post to stop running is the Invalid Access Token error. How to Detect this Error Pilot Poster comes with a Logging feature that stores all of the errors encountered during a scheduled post. And to locate the error log, you need to Navigate to Posts > Scheduled Posts > And Click the Folder Icon at the right-hand side of the displayed table. Fix Invalid Access Token Error In the Log page, you will see the reason why your scheduled posts stopped running and if the error message seen is Invalid Access Token as shown in the image above, then read below to see how to fix; How to Fix Invalid Access Token Error The invalid access token error simply means the token for the selected app used for posting is expired and needs to be re-authenticated. And to fix, all you need to do is Re-authenticate the current app used for posting. To Re-authenticate, Goto Settings > Facebook Apps > Deauthenticate the App. And then click the Authenticate button again. When you click the Authenticate button again, you do NOT need to go through all of the procedures as you would when Authenticating for the first time. Rather, all you need to click is the Get App Authenticate Link As shown in the image below. re-authenticate-app Copy the displayed access token from the next window that displays and then paste in the Access Token Box. Click the Test Access Token to ensure the copied token is valid, then click the Set Access Token Button. You have successfully re-authenticate your app. Now is time for you to resume the paused schedule or schedule a new post using your authenticated app. Was this article helpful?
code 520 token message token invalide data accounts
TheYouTube Data API supports the OAuth 2.0 protocol for authorizing access to private user data. The list below explains some core OAuth 2.0 concepts: When a user first attempts to use functionality in your application that requires the user to be logged in to a Google Account or YouTube account, your application initiates the OAuth 2.0 Contexte Empreinte offre une API des fonctions de la WEBTV qui offre la capacité de communiquer avec un site ou une application depuis un autre site afin de rendre possible la communication de données entre applications. L’API se caractérise par l’envoi d’une requête HTTP sous forme d’un schéma URL contenant les commandes que l’on souhaite, et la réponse est renvoyée en JSON Javascript Object Notation. L’API natif, est un ensemble de requêtes HTTP ou fonctions dont chacune comprend Une méthode http, Un point d'extrémité accessible via un jeton de session [token], Une liste de paramètres, Un type de retour {integer, boolean, JSON RPC}. L’API NATIF est décrite exhaustivement dans les pages qui suivent c’est l’objet de ce document. Afin de sécuriser les échanges, il est primordial de récupérer une clé d’API unique. Afin de sécuriser l’accès aux vidéos, nous utilisons l’API d’Empreinte Tout d’abord il faut accéder au logiciel pour authentification et récupération de jeton d’accès TOKEN Sand box Description de l’api Nous résumons ci-après les classes et méthodes de l’API. Classe Méthode Description Advertising GET/POST/DELETE List all advertisings - Delete a single advertising - Return choices for the Advertising - Form advertising select input App-parameters GET get infos to extension chrome. - get ParameteBag All Parameters. - get Application ParameteBag. Auth tokens GET/POST get client list of tokens. - regenerate all tokens - Generate a new token for a specific client Caption GET/POST/DELETE get Video Caption. - Generate Caption. Channel GET/POST/DELETE List all channels. - List all channels group by themes. - Delete a single Channel. - Return url export channel - Return choices for the Theme Form Channels select input. Chutier GET/POST/DELETE Creates a new chutier from the - submitted data. - List all chutiers. - Delete a single chutier. Comments GET/POST/DELETE - CommentsLive GET/POST/DELETE - Configuration general GET/POST/DELETE - Cron Automation Event GET - Cron Synchronization GET - Dailymotion GET/POST - DataTable GET - Direction GET/POST/DELETE - Display-Bloc GET/POST - Display-program GET/POST/DELETE - EncoderLive GET/POST - Event GET/POST - Fields Order GET/POST - HomeConf GET/POST - Ips GET/POST - Iptv GET/POST - LiveConf GET/POST - Lives GET/POST/DELETE - Login - Media GET/POST/DELETE - Message GET/POST/DELETE - Mooc - MultiDelete POST - Output POST - Param GET/POST - Player Parameter GET/POST - Playlist GET/POST/DELETE - Podcast GET/POST/DELETE - Preset GET/POST/DELETE - Profiles Groupes GET/POST/DELETE - Profiles Users GET/POST/DELETE - Right GET/POST/DELETE - Rmbox group GET/POST/DELETE - Rmbox GET/POST/DELETE - Routes GET - Screen GET/POST/DELETE - Server GET/POST - Station GET/POST/DELETE - Stats GET - Stats Acces GET - Stats Audience GET - Stats Bande Passante GET - Stats Engagement GET - Stats Geo GET - Stats Storage GET - Stats Technologie GET - Stats Time Reel GET - Subscription Group GET/POST/DELETE - Subscription ser GET/POST/DELETE - Survey GET/POST/DELETE - Synchronisation GET/POST - Template GET/POST - Theme GET/POST/DELETE - Video GET/POST/DELETE - Vote GET/POST/DELETE - Web Services Event GET/POST - Youtube GET/POST - Zone GET/POST/DELETE - richMedia GET/POST/DELETE - webservice GET/POST/DELETE send mail since contact form mail - Web Service Live get content service loginMobile - Web Service Live encrypt/decrypt Test web service token generator. Classes et fonctions détaillés Authentification ACCES Permettre l’accès au logiciel METHODE POST END POINT get infos to extension chrome. - get ParameteBag All Parameters. - get Application ParameteBag. PARAMETRES get client list of tokens. - regenerate all tokens - Generate a new token for a specific client RETURN si succès - JSON {"Token" "abcd4545dfdfdwvuuuhsdgfggff"} //ce jeton est disponible pour une période de 24 heures si échec - JSON {"Message" "le texte du message"} -Login ou password sont incorrects. Nom d'utilisateur est vide. -Mot de passe est vide. - API Key est invalide. - Client inexistant. Le jeton [token] doit être fourni dans chaque point d'extrémité. Utilisateur Ajouter un utilisateur AJOUTER Ajouter un utilisateur METHODE POST END POINT PARAMETRES Nom string - Prenom string - Login string - Password string - Type string 'E' , 'C' , 'A' - Vignette string url réel du fichier image sur le serveur du client. - Description string - GroupId int - Phone string - Mobile string - Mobile string - Mail string - Etat string 'Maj', 'Del', 'Add', 'Mod' - RETURN ID de l'utilisateur ajouté si succès, False si non Charger un utilisateur CHARGER Charger la liste des utilisateurs METHODE POST END POINT PARAMETRES Id integer RETURN si succès- JSON {"Id" 1, "Nom" "Nom utilisateur", "Prenom" "Prénom utilisateur", "Vignette" "http//url/de/ .... } si échec - {"Message""text message"} texte du message * Token inexistant. * Token invalide. * Client inexistant. * ID utilisateur vide. Charger la liste des utilisateurs CHARGER Charger la liste des utilisateurs METHODE POST END POINT PARAMETRES Id integer RETURN si succès- JSON {"Id" 1, "Nom" "Nom utilisateur", "Prenom" "Prénom utilisateur", "Vignette" "http//url/de/ .... }, { ..... } si échec - {"Message""text message"} texte du message * Token inexistant. * Token invalide. * Client inexistant. Supprimer un utilisateur SUPPRIMER Supprimer un utilisateur METHODE POST END POINT PARAMETRES Id integer RETURN Bolean true si succès, false si non Chercher un utilisateur avec un critère CHERCHER Chercher un utilisateur avec un critère METHODE POST END POINT PARAMETRES Field string nom de la colonne Nom, Prenom, etc Value string valeur ou une partie de valeur de la colonne RETURN Bolean true si succès, false si non Groupe Charger un groupe CHARGER Charger un groupe METHODE POST END POINT PARAMETRES GroupId integer RETURN si succès - JSON{ "Id" 1, "Titre" "Titre du groupe", "Description" "Description du groupe },{ … } si echéc - {"Message""text message"}texte du message Token inexistant. Token invalide. * Client inexistant. * Paramètre GroupId inexistant Lister les groupes d'utilisateurs LISTER Lister les Groupes d’utilisateurs METHODE POST END POINT PARAMETRES Pas de paramètre RETURN si succès - JSON{ "Id" 1, "Titre" "Titre du groupe", "Description" "Description du groupe },{ … } si echéc - {"Message""text message"}texte du message Token inexistant. Token invalide. * Client inexistant. Vidéo Importer une vidéo IMPORTER Importer une vidéo METHODE POST END POINT PARAMETRES VideoName string le nom du fichier vidéo dans le serveur du cliente CallBack string url de retour client JSON JSON { "VideoToken""c45f506db2f7ecce39cec3f9979e4406", "Thumbnails"[" " " " " RETURN si succès - {"VideoToken""c45f506db2f7ecce39cec3f9979e4406"} si echéc - JSON {"Message" "texte du message"}texte du message ▪ Vous devez choisir un fichier vidéo. ▪ Le fichier vidéo doit avoir l'extension {avi, mov, mpg, flv, mpa, asf, wma, mp2, m2p, vob}. ▪ Erreur d'importation du fichier vidéo. ▪ Erreur d'enregistrement du fichier vidéo. ▪ Vous devez spécifier l'url de callback. ▪ Token inexistant ▪ Token invalide ▪ Client inexistant. Charger une vidéo avec son ID CHARGER Charger une vidéo avec son ID METHODE POST END POINT PARAMETRES VideoId integer RETURN si succès - JSON { "Id" 1, "Titre" "Titre du vidéo", "Auteur" "Auteur", "CopyRight" "CopyRight", "DateDebut" "01/01/2015", "DateFin" "03/01/2015", .....} si echéc - {JSON {"Message" "Video Id n'existe pas."} Supprimer une vidéo SUPPRIMER Supprimer une vidéo METHODE POST END POINT PARAMETRES VideoId integer RETURN si succès - {"Message""OK"} si echéc - {"Message""text message"}texte du message * Token inexistant * Token invalide * Client inexistant * ID vidéo est vide Charger la liste des vidéos SUPPRIMER Supprimer une vidéo METHODE POST END POINT PARAMETRES Pas de paramètre RETURN si succès - JSON{ "Id" 1, "Titre" "Titre du vidéo", "Description" "Description du vidéo", "Auteur" "Auteur", "DateDebut" "01/01/2015", "DateFin" "03/01/2015", .....},{ .....} si echéc - {"Message""text message"}texte du message * Token inexistant * Token invalide * Client inexistant Ajouter une vidéo AJOUTER Ajouter une vidéo DESCRIPTION La fonction ajouter une vidéo permet d'ajouter une vidéo déjà importer avec la méthode “Impoter une vidéo”. ▪ Lors de l'importation de la vidéo un jeton sur le fichier situé sur le serveur d'upload sera généré VideoToken, la procédure d'ajout permet alors de transférer la vidéo vers le serveur de streaming, ainsi de remplir les métadonnées de cette vidéo Titre, Auteur, …etc. ▪ La procédure d'importation d'une vignette engendre deux sénarios possible 1. Lors de l'importation d'une vidéo, la fonction upload retourne au client la liste des vignettes 5 disponible pour la vidéo, donc le client peut par la suite ajouter la vignette via le paramètre Vignette, cette dernière sera transférer vers le BO du client et elle sera associé au vidéo correspondante. 2. Si le client ne choisi aucune vignette disponible pour la vidéo et il décide de choisir une de chez lui, alors il pourra importer sa propre vignette via le paramètre Imagedata, dans ce cas la vignette choisie sera transférer vers le BO du client et elle sera associée au vidéo correspondante. METHODE POST END POINT Liste des paramétres PARAMETRES VideoToken string un jeton généré lors de l'importation CallBack string url fournie par le client, retourne au client un JSON{ "Id" "1232" Status "Y Titre string Auteur string DateDebut string yyyy-mm-dd DateFin string yyyy-mm-dd Description string MotCles string Vignette string le nom de la vignette générer lors de l'importation obligatoire Imagedata string url de la vignette sur le serveur du client Themes {1,2,3} La liste des thèmes Id au format JSON RETURN si succès - { "Id""1234", "VignetteResult""1 - message d'erreur", //message d'erreur Extension invalide , veuillez choisir 'jpg', 'png', 'gif'. "MP4""l'url d'export de la vidéo", export/video/1234 "PathToThumbnails""url d'accès aux vignettes de la vidéo", // http//path/to/thumbnails/ } si échec - JSON {"Message" "texte du message"} texte du message * Veuillez spécifier le jeton de la vidéo. * Token inexistant. * Token invalide. * Client inexistant. Theme Charger un thème avec l’ID CHARGER THEME Charger un thème avec l’ID METHODE POST END POINT PARAMETRES ThemeId integer RETURN si succès - JSON{"Id" 1, "Titre" "Titre du théme", "Description" "Description du théme", "Logo" "http//url/de/ .....} si echéc - {JSON {"Message" "texte du message"}texte du message * Token inexistant. * Token invalide. * Client inexistant. * ThemeId est obligatoire. Charger la liste des thèmes CHARGER LISTE Charger la liste des thèmes METHODE POST END POINT PARAMETRES Pas de paramètre RETURN si succès - JSON{"Id" 1, "Titre" "Titre du théme", "Description" "Description du théme", "Logo" "http//url/de/ .....},{ .....} si echéc - {JSON {"Message" "texte du message"}texte du message * Token inexistant. * Token invalide. * Client inexistant. Canal Charger la liste des canaux CHARGER LISTE Charger la liste des canaux METHODE POST END POINT PARAMETRES Pas de paramètre RETURN si succès - JSON{ "Id" 1, "Titre" "Titre du canal", "LangsId" "fr", .....},{ .....} si echéc - {JSON {"Message" "texte du message"}texte du message * Token inexistant. * Token invalide. * Client inexistant. Advertising GET /advertising List all advertisings. List all advertisings. DELETE /advertising/delete/{id} Delete a single advertising. Delete a single advertising. Requirements id - Requirement \d+ GET /advertising/select-choices/{idToIgnore} Return choices for the Advertising Form advertising select input. Return choices for the Advertising Form advertising select input. Requirements idToIgnore - Requirement \d+ Parameters * required false * description advertisingId GET /advertising/{id} Return advertising thumbs. Return advertising thumbs. GET /advertising/select-choices/{idToIgnore} Get a single advertising. Requirements id - Requirement \d+ - Type integer Parameters * required false * description advertisingId Response title * type string link_url * type string date_start * type DateTime date_end * type DateTime active * type boolean id * type integer logo * type string created_at * type DateTime updated_at * type DateTime /advertising/add POST /advertising/edit/{id} Edit the advertising with the submitted data. Edit the advertising with the submitted data. Requirements id - Requirement \d+ Parameters empAdvertisingForm * type object AdvertisingType * required true empAdvertisingForm[title] * type string * required false mpAdvertisingForm[link_url] * type string * required false empAdvertisingForm[date_start] * type datetime * required true empAdvertisingForm[date_end] * type datetime * required true empAdvertisingForm[active] * type choice * required true empAdvertisingForm[logo] * type string * required false * description form_attr_vignette /advertising/ids GET /advertising/ids List all advertising ids. List all advertising ids. /advertising/upload/thumb POST /advertising/upload/thumb Upload Advertising Logo. Parameters empApiFileForm * type object UpFileType * required true empApiFileForm[thumb] * type file * required true App-parameters /global/get-param-extension GET /global/get-param-extension get infos to extension chrome. get infos to extension chrome. /global/parameter-bag/all GET /global/parameter-bag/all get ParameteBag All Parameters. et ParameteBag All Parameters. /global/parameter-bag/app get Application ParameteBag. get Application ParameteBag. POST /global/log Function log Function log Requirements cause - Type string exception - Type string module - Type string error_code - Type string Auth tokens /tokens/list GET /tokens/list get client list of get client list of tokens. /tokens/regenerate-all GET /tokens/regenerate-all regenerate all tokesn regenerate all tokens /tokens/{id}/regenerate GET /tokens/{id}/regenerate Generate a new token for a specific client Generate a new token for a specific client Requirements id - Requirement \d+ Caption /caption/video/{id}/captions-by-{lang}-language GET /caption/video/{id}/captions-by-{lang}-language get Video Caption. get Video Caption. Requirements id - Requirement \d+ lang - Requirement [a-zA-Z_]+ /caption/video/{id}/generate-caption POST /caption/video/{id}/generate-caption Generate Caption. Requirements id - Requirement \d+ /caption/video/{id}/generate-tmp-json POST /caption/video/{id}/generate-tmp-json Generate tmp json apimediapostgeneratetmpjson Requirements id - Requirement \d+ wWsI. 464 350 233 419 267 496 277 86 87

code 520 token message token invalide data accounts