vin-decoder

부분 유료
분류별 Jason | 업데이트됨 17 days ago | Data
인기

9.7 / 10

지연 시간

181ms

서비스 수준

96%

Health Check

N/A

모든 토론으로 돌아가기

Migrant code to sql sp_oamethod

Rapid account: Cmmlb 2010
cmmlb2010
4 years ago

I’m converting the code into json using sql sp_OAMethod

Here is the code:

EXEC @ret = sp_OACreate ‘MSXML2.ServerXMLHTTP’, @token OUT
SET @url = ‘https://vindecoder.p.rapidapi.com/decode_vin?vin=4F2YU09161KM33122’;

EXEC @ret = sp_OAMethod @token, ‘Open’, null, ‘post’, @url, ‘false’

EXEC @ret = sp_OAMethod @token, ‘setRequestHeader’, NULL,‘x-rapidapi-host’, 'vindecoder.p.rapidapi.com
EXEC @ret = sp_OAMethod @token, ‘setRequestHeader’, NULL,‘x-rapidapi-key’, '<<fill api key>>'
EXEC @ret = sp_OAMethod @token, ‘setRequestHeader’, NULL, ‘Content-Type’, @contentType;
EXEC @ret =sp_OAMethod @token, ‘get’, @JSON OUTPUT

Everything ok till last instruction

What am i doing wrong

Assistence will be much apreciated

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입