Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Able to access full JSON description per glos with API key #1506

Open
rem0g opened this issue Feb 20, 2025 · 1 comment
Open

Able to access full JSON description per glos with API key #1506

rem0g opened this issue Feb 20, 2025 · 1 comment

Comments

@rem0g
Copy link
Collaborator

rem0g commented Feb 20, 2025

When calling API get_gloss_data I am only be able to see the full version of the gloss data with cookies I've obtained from login page, it should be extended with API key and passed through headers with Authorization Bearer.

@vanlummelhuizen
Copy link
Collaborator

A quick test using cURL to get the data of https://signbank.cls.ru.nl/dictionary/gloss/37005/ in JSON format:

❯ curl -H 'Authorization: Bearer <MY-API-KEY>' https://signbank.cls.ru.nl/dictionary/get_gloss_data/1/37005/
{
  "37005": {
    "Lemma-ID-Glos: Nederlands": "wesseltest6",
    "Lemma-ID-Glos: Engels": "wesseltest6",
    "Annotatie-ID-Glos: Nederlands": "wesseltest6",
    "Annotatie-ID-Glos: Engels": "wesseltest6",
    "In Het Woordenboek": "False",
    "Voorstel Voor Nieuw Gebaar?": "False",
    "Buiten Ecv Houden": "False",
    "Herhaalde Beweging": "False",
    "Alternerende Beweging": "False",
    "Link": "https://signbank.cls.ru.nl//dictionary/gloss/37005",
    "Video": "https://signbank.cls.ru.nl//dictionary/protected_media/glossvideo/tstMH/we/wesseltest6-37005.mp4",
    "Video_checksum": "14fbcde970d62eed6cec390981219104",
    "Labels": [
      "nme: missing",
      "video: missing"
    ],
    "Affiliatie": [
      "Radboud"
    ],
    "Perspective Videos": [
      {
        "ID": "354681",
        "Link": "https://signbank.cls.ru.nl//dictionary/protected_media/glossvideo/tstMH/we/wesseltest6-37005_left.mp4",
        "Checksum": "843330a2246aa5b37fef8ec7e40843c3"
      },
      {
        "ID": "354682",
        "Link": "https://signbank.cls.ru.nl//dictionary/protected_media/glossvideo/tstMH/we/wesseltest6-37005_right.mp4",
        "Checksum": "3036358542c748b3c24ec7ac582b312f"
      }
    ]
  }
}

This looks correct to me. What exactly do you do? And what exactly is the result?

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

No branches or pull requests

3 participants
@rem0g @vanlummelhuizen and others