Replies: 2 comments 1 reply
-
|
You can't skip the first and the second optional parameter when specifying the third parameter. A parameter that is optional means it has a default value if you don't provide one. Usually the default value is also mentioned in the docs. |
Beta Was this translation helpful? Give feedback.
-
|
Is there a reason why a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For example:
/youtube/charts/:category?/:country?/:embed?category,countryandembedare optional, and let's say I want to specify the value ofembedand use default values for other optional parameters.What URL / route should I use?
I have tried several times but I couldn't figure out the correct way to skip the 1st and 2nd params.
e.g. These won't work:
https://rsshub.app/youtube/charts/:/:/nohttps://rsshub.app/youtube/charts/?/?/nohttps://rsshub.app/youtube/charts/default/default/nohttps://rsshub.app/youtube/charts/noBeta Was this translation helpful? Give feedback.
All reactions