experimenting with format

This commit is contained in:
idk
2018-04-03 02:54:50 -04:00
parent ffe9e443cb
commit 6ac2c0ba2f
3 changed files with 22 additions and 17 deletions

10
auth.go
View File

@ -20,8 +20,14 @@ func (i *i2pControlStructure) i2pControlDo(s ...string) string{
return ""
}
func (i *i2pControlStructure) Echo(s ...string) (string, string) {
query := i.jsonstructure.Echo(s...)
func (i *i2pControlStructure) Authenticate(s string) (string, string) {
query := i.jsonstructure.Authenticate("API" , "1", "Password", s)
fmt.Println(query)
response := i.i2pControlDo(query)
return query, response
}
func (i *i2pControlStructure) Echo(s string) (string, string) {
query := i.jsonstructure.Echo("API" , "1", "Token", s)
fmt.Println(query)
response := i.i2pControlDo(query)
return query, response