Skip to content

redu/jredu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JRedu

Esse pacote simple encapsula todas as funcionalidades da api do Redu para que o desenvolvedor não precise se preocupar como as requisições são feitas.

QuickStart

Comece criando um novo objeto Redu, fornecendo seu consumer token e secret token:

DefaultReduClient redu = new DefaultReduClient("yourconsumerkey", "yoursecretkey");

Adquira o seu authpin e inicie o cliente:

Scanner in = new Scanner(System.in);
System.out.println("Visit this url: "+redu.getAuthorizeUrl());
System.out.println("Enter your pin:");
String pin = in.nextLine();
redu.initClient(pin);

Teste a autenticação com uma requisição simples, este metódo deve retornar as informações do seu login:

System.out.println(redu.getMe());

*Obs:

Só é preciso pedir o pin uma vez por usuário, depois de adquirido basta iniciar o client dessa maneira:

DefaultReduClient redu = new DefaultReduClient("yourconsumerkey", "yoursecretkey", "yourpin");

Como contribuir

  1. Fork redupy no github.com
  2. Crie um novo branch
  3. Dê commit nas mudanças
  4. Mande um pull request

Redu Educational Technologies

Este projeto é financiado e mantido pelo Redu Educational Techologies.

Copyright

Copyright (c) 2012 Redu Educational Technologies

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Encapsulador Java para a API REST do Redu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages