0
ESPN API是否會返回任何運動的播放器圖像鏈接?我需要顯示播放器圖像以及我能成功檢索的其他數據。如果沒有,是否有另一種推薦的方法來檢索這些圖像?ESPN的API是否返回圖像
ESPN API是否會返回任何運動的播放器圖像鏈接?我需要顯示播放器圖像以及我能成功檢索的其他數據。如果沒有,是否有另一種推薦的方法來檢索這些圖像?ESPN的API是否返回圖像
我真的不知道ESPN有一個API。棒極了。
從documentation,它看起來像你可以找到通過爆頭圖像響應屬性(如果可用):
headshots Collection of athlete headshots as specified below, each containing href, width, and height attributes. Soccer, recruiting, and WNBA not currently supported. Note: clients apps must be responsible for handling missing headshots as not every athlete has one.
full 600x436 athlete headshot
xlarge 350x254 athlete headshot
large 65x90 athlete headshot
medium 43x60 athlete headshot
small 34x48 athlete headshot
xsmall 28x38 athlete headshot
fantasy 200x145 athlete headshot
還有一個視頻API,但它並不像它是運動員的鑰匙。
你可能想用「web服務」,「REST」,「JSON」等東西來標記這個問題。 – Vidya
感謝幫助新手。完成了! –