Code Monkey home page Code Monkey logo

net-jscrambler's Introduction

JScrambler Client for .NET

ATTENTION: THIS IS AN BETA VERSION.

History

2014-06-28

  • Add initialization from configuration;
  • Update documentation.

2014-06-18

  • Initial beta release.

API

All of the API operations are wrapped in a static facade with the following properties/methods:

Client

Installation

** Manual **

  • Build from source;
  • Add JScrambler.Client.dll to your references;
  • Install dependencies DotNetZip and RestSharp using nuget console.

** Using nuget console **

Soon.

Configuration (optional)

This App.test.config can be found in the test project root.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  
  <configSections>
    <sectionGroup name="jscrambler">
      <section
        name="service"
        type="JScrambler.Client.Configuration.ServiceSection, JScrambler.Client"
        allowLocation="false"
        allowDefinition="Everywhere" />
    </sectionGroup>
  </configSections>

  <jscrambler>
    <service 
      apiHost="api.jscrambler.com" 
      apiVersion="3" 
      apiPort="80"> <!--use 443 for production--> 
      <credentials
        accessKey="YOUR_ACCESS_KEY" 
        secretKey="YOUR_SECRET_KEY" />
    </service>
  </jscrambler>

</configuration>

Initialization

// init reading application configuration settings
var jscrambler = new JScrambler();

// init supplying access/secret keys
var jscrambler = new JScrambler("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY");

// init supplying access/secret keys and API host
var jscrambler = new JScrambler("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "api.jscrambler.com");

// init supplying access/secret keys, API host/port
var jscrambler = new JScrambler("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "api.jscrambler.com", 80);

Available methods

  • UploadCode
  • GetInfo (project or list of projects)
  • DownloadProject
  • DownloadSourceCode
  • DeleteProject

TODO

  • Complete unit tests
  • Fix failing unit tests
  • Create predefined set's of templates
  • Refactor DownloadSourceCode
  • Publish nuget package
  • WIKI with complete examples

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.