Explorar el Código

Use latest update/delete endpoints

tags/v0.4
Matt Baer hace 8 años
padre
commit
b318b63660
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      writeas/cli.go

+ 2
- 2
writeas/cli.go Ver fichero

@@ -495,7 +495,7 @@ func DoPost(post []byte, encrypt, tor, code bool) error {
}

func DoUpdate(post []byte, friendlyId, token string, tor bool) {
urlStr, client := client(false, tor, "", fmt.Sprintf("id=%s&t=%s", friendlyId, token))
urlStr, client := client(false, tor, friendlyId, fmt.Sprintf("t=%s", token))

data := url.Values{}
data.Set("w", string(post))
@@ -525,7 +525,7 @@ func DoUpdate(post []byte, friendlyId, token string, tor bool) {
}

func DoDelete(friendlyId, token string, tor bool) {
urlStr, client := client(false, tor, "", fmt.Sprintf("id=%s&t=%s", friendlyId, token))
urlStr, client := client(false, tor, friendlyId, fmt.Sprintf("t=%s", token))

r, _ := http.NewRequest("DELETE", urlStr, nil)
r.Header.Add("User-Agent", "writeas-cli v"+VERSION)


Cargando…
Cancelar
Guardar