RESTful Web APIRequests made to the server are simple HTTP messages containing parameters that will be used to authenticate and process the request. ResourcesA list of the resources currently available:
All responses are in JSON format. POST /code.jsonRequest for JavaScript code transformation. Parameters
Response
GET /code.jsonGet information about your submitted requests. Parameters
Response
GET /code/_id_.jsonGet information about the request with the _id_. Parameters
Response
DELETE /code/_id_.jsonDelete a request with the _id_. Parameters
Response
Required ParametersThe following parameters are mandatory to all requests. access_keyKey used to authenticate the user at each request made to the server. Obtainable at the Web UI after signing up. timestampISO 8601 current time e.g. 2011-01-01T12:00:00+01:00 signatureHMAC signature used to authenticate the user. Check /webapi/authentication for more info. code (POST only)JavaScript source code to be uploaded. filename (POST only)Name of the JavaScript source code file. Optional ParametersThe following parameters are optional. statusGet information about your submitted requests by status. Valuesuccess - Successfull requests error - Requests that return a compile error as a syntax or lexical error deleted - Requests that have been deleted onqueue - Requests that are on queue to be proccessed symbol_tableThe symbol table contains key-value pairs representing the source code names and their replacements. You may add this parameter to a GET request of a resulting obfuscation and retrieve the respective symbol table. You may also use it as parameter of a POST to pre-populate a symbol table of a new obfuscation request. GETGet the symbol table of the resource with the _id_. Value%DEFAULT% - default behaviour POSTPre-populate the symbol table Valuename_1,replacement_1;name_2,replacement_2; ... pairs containing a program's source code identifier and its replacement Examples:name_1,a;name_2,x; - at the program's source code the identifiers 'name_1' and 'name_2' will be replaced by 'a' and 'x' respectively whitespaceShrink the size of your JavaScript removing unnecessary whitespaces and newlines from the source code. Value%DEFAULT% - default behaviour rename_allRenames all identifiers found at your source code. By default, there is a list of JavaScript and HTML DOM names that will not be replaced. If you need to add additional exceptions use the exceptions_list parameter Value%DEFAULT% - default behaviour exceptions_listThere are some reserved names that should not be replaced or reused to create new declarations. Take as example the HTML DOM Object document and the JavaScript method toUpperCase. Likewise, public declarations belonging to other sources have to be taken into consideration for the same reason. Therefore, a list of JavaScript and HTML DOM names exist to define which should never be replaced or reused by JScrambler. Use this parameter to add your own exceptions. Valuename|name_1| ... - exceptions list Examples:name_1|name_2|name_3 - name_1, name_2 and name_3 if found at your source code will never be replaced as will never be used to create new declarations rename_localRenames local (private) names only. The best way to replace names without worrying about name dependencies. Value%DEFAULT% - default behaviour dic_compressionDictionary compression to shrink even more your source code. In some specific situations may add some cost to the execution. Value%DEFAULT% - default behaviour function_reorderRandomly reorders function declarations at your source code. Value%DEFAULT% - default behaviour literalReplaces literals by a randomly sized chain of ternary operators. You may configure the minimum and maximum size limits as the probability of occurrences. See example. Value%DEFAULT% - default behaviour min | max [| percent] Examples:1|2 - replace all literals by a one to two sized ternary operator. 0|2|.8 - may or may not (minimum: 0) replace literal. Has a 8 in 10 probability (precent) of replacing a literal by a one to two sized ternary operator. member_enumReplaces HTML DOM and Browsers elements (i.e., objects, properties, methods) by a member enumeration selection. Value%DEFAULT% - default behaviour dead_codeRandomly injects dead code. Value%DEFAULT% - default behaviour string_splittingSplits strings found at your source code. Value%DEFAULT% - default behaviour encode_allEncodes all your JavaScript. Value%DEFAULT% - default behaviour Note: Do not use this if other scripts depend on the JavaScript you are obfuscating. domain_lockLocks your JavaScript to a specific domain of your choosing. Valuedomain - your domain Exampleyour.domain.net expiration_dateSets your JavaScript to expire after a date of your choosing. Valuedate - date YYYY/MM/DD Example2099/12/31 |
IntroDocsDownload |
Version 1 | Last modified at March 10, 2011