-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add favicon to help find tabs to close
- Loading branch information
1 parent
14aad27
commit c0677d2
Showing
11 changed files
with
66 additions
and
42 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../resources/favicon.ico |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../README.md |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
(ns happyapi.providers.twitter-test | ||
(:require [clojure.edn :as edn] | ||
[clojure.test :refer :all] | ||
(:require [clojure.test :refer :all] | ||
[happyapi.providers.twitter :as twitter])) | ||
|
||
(deftest api-request-test | ||
(twitter/setup! (assoc-in (edn/read-string (slurp "happyapi.edn")) | ||
[:twitter :redirect_uri] | ||
"http://localhost:8080/redirect")) | ||
(twitter/api-request {:method :get | ||
:url "https://api.twitter.com/2/users/me" | ||
:scopes ["tweet.read" "tweet.write" "users.read"]}) | ||
(twitter/api-request {:method :delete | ||
:url "https://api.twitter.com/2/tweets/1811986925798195513" | ||
:scopes ["tweet.read" "tweet.write" "users.read"]}) | ||
(twitter/setup! nil) | ||
(is (-> (twitter/api-request {:method :get | ||
:url "https://api.twitter.com/2/users/me" | ||
:scopes ["tweet.read" "tweet.write" "users.read"]}) | ||
:username)) | ||
(is (-> (twitter/api-request {:method :delete | ||
:url "https://api.twitter.com/2/tweets/1811986925798195513" | ||
:scopes ["tweet.read" "tweet.write" "users.read"]}) | ||
:deleted)) | ||
;; let's not post every time I run the tests... | ||
#_(twitter/api-request {:method :post | ||
:url "https://api.twitter.com/2/tweets" | ||
:scopes ["tweet.read" "tweet.write" "users.read"] | ||
:body {:text "This is a test tweet from HappyAPI"}})) | ||
:url "https://api.twitter.com/2/tweets" | ||
:scopes ["tweet.read" "tweet.write" "users.read"] | ||
:body {:text "This is a test tweet from HappyAPI"}})) |