Tuesday 20 August 2013

Upload your file on the cloud with javascript api.

Now ShepHertz come up with upload API. You can easily upload your file on the cloud by using javascript api. File type supported are AUDIO, VIDEO , IMAGE , BINARY ,  TXT ,XML , CSV , JSON , OTHER.
Rather then storing file on your local storage upload  your file on the cloud , and you can retrieve your file .
Why to use ShepHertz api?
1). Easy to use, just do registration and get your keys and start using service.
2). Free use upto 1 million calls and store upto 1GB(1000MB) of data.
3). Mostly helpful for the individual developer .
4) samples are also provided which help the developer how to use API.
Steps to use :
1) Download the javascript sdk ,unzip and store on your local machine storage.
2). Now include App42-all-x.x.x.min.js in your project.
3).Then initialize API_KEY and SECRET_KEY in your project
                   App42.initialize("API_KEY","SECRET_KEY");
4). Now use the given code to upload your file :
   function uploadFile() {
        var upload  = new App42Upload();
        var name = "name of your file" ;
        var filePath = "path of file on your local machine"
        var fileType = "type of file you want to upload";
        var description = "description";
        upload.uploadFile(name, filePath , fileType,description,{
                success: function(object) {
                    $(".success").show();
                    var uploadObj = JSON.parse(object)
                    $('#success').html("uploadFile");
                    jAlert('File has been successfully Uploaded',"Upload File");
                    console.log(uploadObj)
                },
                error: function(error) {
                }
            });
    }
Note - When you unzip the SDK sample code is also given to help you.You can also mange or see your file from AppHQ,  AppHQ is the management console of your API.
When you register , click on dashboard, then on left pannel click on technical service , after that click the upload service where you will see your file which is uploaded. as shown in image below.

Saturday 17 August 2013

easy to use javaScript api

Now a days javascript api are too popular and ShepHertz technology came out with the solution and provide most useful javascript api, with a ease to use . javascript api is so simple to use.
The most useful api is login/authentication which is used in most of the login site . shephertz have the solution for it. you can use user api for your login purpose you can also set user profile using api.
Why to use shephertz api?
1). Easy to use, just do registration and get your keys and start using service
2). Free use upto 1 million calls.
3). Mostly helpful for the individual developer .
4) samples are also provide to help developer how to use.
Steps to use shephertz api:
  1. Register with App42 platform.
  2. Create an app once you are on Quick start page after registration.
  3. You will get your api and secret keys , initialize in your project.
  4.  Download app42 javascript sdk and unzip on your local machine.
  5. Include  App42-all-x.x.x.min.js in your  project.
                 <script type="text/javascript" src="../App42-all-x.x.x.min.js"></script>

Note: Sample code is also given to help you .