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

Commit

Permalink
Fixing README
Browse files Browse the repository at this point in the history
  • Loading branch information
Langsdorf committed Jun 2, 2018
1 parent 1389ec1 commit b164396
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Veja a página [Exemplos](https://github.com/Langsdorf/BlackBird/tree/master/src
## Maven :computer:
Você pode usar o BlackBird com Maven utilizando o JitPack:
```
<repositories>
<repository>
<id>jitpack.io</id>
Expand All @@ -22,8 +21,7 @@ Você pode usar o BlackBird com Maven utilizando o JitPack:
<groupId>com.github.Langsdorf</groupId>
<artifactId>BlackBird</artifactId>
<version>1.0</version>
</dependency>
</dependency>
```

## Downloads :floppy_disk:
Expand All @@ -42,9 +40,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);
```
```java
BlackBird blackBird = new BlackBird(consumerKey, consumerSecret, accessToken, accessTokenSecret);
```
##### 1.6 Tudo pronto, veja os exemplos para aprender mais! :smile:


Expand All @@ -54,14 +52,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.
BlackBird blackBird = oauthURL.authenticate(pin);
```
```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.
BlackBird blackBird = oauthURL.authenticate(pin);
```
##### 1.5 Tudo pronto, veja os exemplos para aprender mais! :smile:
## Pull requests:
Expand Down

0 comments on commit b164396

Please sign in to comment.