-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test out free fb client implementation
- Loading branch information
Andre Bongon
authored
Aug 23, 2016
1 parent
eff5f1d
commit f2ff3f9
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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,27 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"github.com/joho/godotenv" | ||
"github.com/matiasinsaurralde/transports" | ||
"os" | ||
) | ||
|
||
func main() { | ||
godotenv.Load() | ||
|
||
fmt.Println("Transports test") | ||
|
||
freefbTransport := transports.FreeFBTransport{ | ||
Login: os.Getenv("FB_LOGIN"), | ||
Password: os.Getenv("FB_PASSWORD"), | ||
Friend: os.Getenv("FB_FRIEND"), | ||
} | ||
|
||
Proxy := transports.Proxy{ | ||
Transport: freefbTransport, | ||
Port: 8080, | ||
} | ||
|
||
Proxy.Listen() | ||
} |