Giter Club home page Giter Club logo

toodledoesbconnector's Introduction

Product: Integration tests for WSO2 ESB ToodleDo connector

Pre-requisites:

  • Maven 3.x
  • Java 1.6 or above
  • A ToodleDo account

Tested Platform:

  • Ubuntu 14.04 64bit
  • WSO2 ESB 4.8.1

STEPS:

  1. Make sure the ESB 4.8.1 zip file with latest patches available at {basedir}/repository folder. If you want to use another location edit the pom.xml as follows.

       <carbon.zip>
         ${basedir}/../test/wso2esb-${esb.version}.zip
       </carbon.zip>
    
  2. Copy ToodleDo connector zip file (ToodleDo.zip) to the location "Integration_Test/products/esb/4.8.1/modules/integration/connectors/repository/"

  3. Make sure the Toodledo test suite is enabled (as given below) and all other test suites are commented in the following file - "{basedir}/src/test/resources/testng.xml"

  4. This section describes how to obtain an access token from the toodledo API.

    i) Login to your toodledo developer account, then navigate to url: https://api.toodledo.com/3/account/authorize.php?response_type=code&client_id=yourClientID&state=newstate&scope=basic%20tasks%20notes%20outlines%20lists%20share%20write.

    ii) Get the code from return url https://localhost/?code=e64783a2ea984146bb91efa5fbc8c40907ba1cd9&state=qwerty

    iii)By giving the code you can get access token and refresh token.

    iv) Access token will expire after two hours and we can get a new access token by giving the refresh token. Each authenticated user is allowed to make 100 API calls per access token.

    v) Go to {basedir}/src/test/resources/artifacts/ESB/connector.config/toodledo.properties and add following lines : clientId - client ID of the Toodledo app clientSecret - client secret of the Toodledo app

    vi) getAccessToken.xml configuration will obtain the access token using these property values and getRefreshToken.xml will obtain the new access_token.

  5. From the base directory run the following command. $ mvn clean install

Notes: More about api : http://api.toodledo.com/3/index.php

toodledoesbconnector's People

Contributors

dinithiviranga avatar rajeesat avatar rajeenthini avatar

Watchers

 avatar

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.