Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Langsdorf committed Jun 2, 2018
1 parent 97883a3 commit 1389ec1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# BlackBird :bird:
[![](https://jitpack.io/v/Langsdorf/BlackBird.svg)](https://jitpack.io/#Langsdorf/BlackBird) [![](https://api.travis-ci.org/Langsdorf/BlackBird.svg?branch=master)](https://travis-ci.org/Langsdorf/BlackBird)
### Uma simples API do Twitter feito em Java usando ScribeJava :dog:.

### [English README](https://github.com/Langsdorf/BlackBird/blob/master/README_EN.md)
## Por que usar? :confused:
É simples, rápido e fácil! Por que não?

## Exemplos :point_right:
Veja a página [Exemplos](https://github.com/Langsdorf/BlackBird/tree/master/src/examples/java/com/github/langsdorf/blackbird)
## Maven :computer:
Você pode usar o BlackBird com Maven utilizando o JitPack:
`
```
<repositories>
<repository>
Expand All @@ -23,7 +23,8 @@ Você pode usar o BlackBird com Maven utilizando o JitPack:
<artifactId>BlackBird</artifactId>
<version>1.0</version>
</dependency>

```

## Downloads :floppy_disk:
Veja a página de [releases](https://github.com/Langsdorf/BlackBird/releases).
Expand All @@ -41,7 +42,9 @@ Sinta-se livre para criar uma [pergunta](https://github.com/Langsdorf/BlackBird/
##### 1.3.1 Caso você queria utilizar com outro usuário, terá que usar o modo de autenticação por PIN.
##### 1.4 Agora você possui Consumer Key, Consumer Secret, Access Token e Access Token Secret
##### 1.5 Crie o objeto BlackBird:
```java
BlackBird blackBird = new BlackBird(consumerKey, consumerSecret, accessToken, accessTokenSecret);
```
##### 1.6 Tudo pronto, veja os exemplos para aprender mais! :smile:


Expand All @@ -51,12 +54,14 @@ Sinta-se livre para criar uma [pergunta](https://github.com/Langsdorf/BlackBird/
##### 1.2 Depois de ter criado o aplicativo, vá até a aba "Keys and Access Tokens
##### 1.3 Agora você possui Consumer Key e Consumer Secret.
##### 1.4 Faça a autenticação:
```java
URLBasedOAuth oauthURL = new URLBasedOAuth(consumerKey, consumerSecret);

String URL = oauthURL.getAuthorizationUrl(); //URL para a página que o usuário deve ir para conceder o acesso.
String PIN = ""; //Coloque aqui o PIN recebido após o usuário conceder acesso.
String pin = ""; //Coloque aqui o PIN recebido após o usuário conceder acesso.

BlackBird blackBird = oauthURL.authenticate(pin);
```
##### 1.5 Tudo pronto, veja os exemplos para aprender mais! :smile:

## Pull requests:
Expand Down

0 comments on commit 1389ec1

Please sign in to comment.