shortcuts Shortcuts Can't add an array in Get URL contents for API request
Jump
shortcuts Shortcuts Can't add an array in Get URL contents for API request
Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearRA
    rastacalavera
    2 months ago 100%

    I am trying to create a shortcut to use the TubeArchivist api to archive YouTube videos. I’ve tried to send the request as text but it doesn’t work because it expects an array I guess? I’ve gotten the request to work using CURL on the command line but when I try to add a value to an array in shortcuts the field is locked and won’t accept any input.

    I’ve done some searching across the wider internet for how to construct arrays in shortcuts but no matter what I attempt that field is always locked. Can it not accept any inputs? Confused how to actually put my structured data into it.

    The URL that comes before it is the local host and port of the TubeArchivist server API endpoint.

    OMG. So my phrasing was not great. The "Get" was for the shortcut not the intended Method. Your screenshot helped me to see how to construct the array though . . . if my command line argument looks like this '{"data": [{"youtube_id": "dH_crMm_7Po", "status": "pending"}]}' would I need 3 separate items? I think I have something to play with and test now :)

    1
  • shortcuts
    Shortcuts rastacalavera 2 months ago 100%
    Can't add an array in Get URL contents for API request

    Hello, I am trying to create a shortcut to use the TubeArchivist api to archive YouTube videos. I've tried to send the request as text but it doesn't work because it expects an array I guess? I've gotten the request to work using CURL on the command line but when I try to add a value to an array in shortcuts the field is locked and won't accept any input. I've done some searching across the wider internet for how to construct arrays in shortcuts but no matter what I attempt that field is always locked. Can it not accept any inputs? Confused how to actually put my structured data into it. The URL that comes before it is the local host and port of the TubeArchivist server API endpoint. ![](https://lemmy.world/pictrs/image/d89ea5a0-cf41-4f0a-a6f9-8f801f143ba4.png)

    10
    5
    fitness Fitness What's your recent fitness victory?
    Jump
    selfhosted Selfhosted Web Controllable HiFi - Any suggestions?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearRA
    rastacalavera
    1 year ago 100%

    I made an account just to say thanks for this. I’ve been using Volumio for years and never messed with plug-ins. Been playing with sub Sonic and navidrome for a few months and combining the two is awesome.

    1