0
안녕하세요. STRAVA API 및 그로부터 구축 된 보석으로 작업하고 있습니다. 내가하려고하는 명령은 다음과 같습니다.cURL to Rails "-d"형식 변환
$ curl -G https://www.strava.com/api/v3/segments/explore \
-H "Authorization: Bearer 83ebeabdec09f6670863766f792ead24d61fe3f9" \
-d bounds=37.821362,-122.505373,37.842038,-122.465977 \
레일즈에서 루비 명령을 사용하여 요청할 수있는 방법은 무엇입니까? 현재 :
@client.segment_explorer([37.821362,-122.505373,37.842038,-122.465977])
API를 보석에 대한 소스 코드는 다음과 같습니다 : 성공적인 API 호출을 만들에
def segment_explorer(args = {}, options = {}, &block)
# Fetches the connections for given object.
api_call('segments/explore', args, 'get', options, &block)
end
가 어떻게이 방법으로 경도로 "-d"를 통과 할 것인가?