• 0 Posts
  • 4 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle
  • NeonWoofGenesis@lemmy.henlo.fitoLemmy SupportHelp with Lemmy API
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    Rofl I don’t know why someone downvoted you, this was nice information thanks.

    I like to add that the keys must be wrapped in double quotes to be parsed as proper JSON.

    # POST to login endpoint
    curl -v --data '{"username_or_email": "username", "password": "password"}' --header 'Content-Type: application/json' https://example.com/api/v3/user/login