Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

error 400 #8

Open
OrbitMan92 opened this issue Sep 2, 2022 · 1 comment
Open

error 400 #8

OrbitMan92 opened this issue Sep 2, 2022 · 1 comment

Comments

@OrbitMan92
Copy link

OrbitMan92 commented Sep 2, 2022

Hello I'm not sure if I'm doing this right but I've installed your plugin:

Here is the URL structure I'm using (I've changed the signature and url for security reasons)
https://mydomain/yourls-api.php?signature=c2f9123xfa&action=update&shorturl=test&url=http://google.com

When I run it I get the following:

400

It would seem it's not recognising update as a valid action - it's been added to the plugins and has been activated in the admin panel. Any ideas?

I've tried edit_url_update instead of update too as the action

@tyler71
Copy link

tyler71 commented Nov 1, 2022

Update worked fine for me.
Did you encode the url?

https://domain.tld/yourls-api.php?signature=aaaaaaa&format=json&timestamp=1667326091&action=update&shorturl=x304q45gek2t0oo&url=https%3A%2F%2Fgoogle.com
https://domain.tld/yourls-api.php
  ?signature=aaaaaaa
  &format=json
  &timestamp=1667326091
  &action=update
  &shorturl=x304q45gek2t0oo
  &url=https%3A%2F%2Fgoogle.com

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants