Go client for the Write.as API https://developers.write.as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
311 B

  1. package writeas
  2. import (
  3. "testing"
  4. )
  5. func TestAuthentication(t *testing.T) {
  6. dwac := NewDevClient()
  7. // Log in
  8. _, err := dwac.LogIn("demo", "demo")
  9. if err != nil {
  10. t.Fatalf("Unable to log in: %v", err)
  11. }
  12. // Log out
  13. err = dwac.LogOut()
  14. if err != nil {
  15. t.Fatalf("Unable to log out: %v", err)
  16. }
  17. }