leighhobson89
New Member
- Joined
- Aug 25, 2016
- Messages
- 36
Hi guys,
I am doing a WinHTTPRequest API call. The response is stored in a variable called responseText. Somewhere in that string will be "videoID": "xxxxxxxxxxx"
The objective here is to pull out the 11 "x" characters and write them in a string.
The GET request sample looks exactly like above (although that is just a snippet from a large response), so it includes the quotes and space, and the colon. So I need to find videoID, skip 4 characters, then copy the next 11 into a variable.
Please can someone indicate the code needed to do this?
Thanks.
I am doing a WinHTTPRequest API call. The response is stored in a variable called responseText. Somewhere in that string will be "videoID": "xxxxxxxxxxx"
The objective here is to pull out the 11 "x" characters and write them in a string.
The GET request sample looks exactly like above (although that is just a snippet from a large response), so it includes the quotes and space, and the colon. So I need to find videoID, skip 4 characters, then copy the next 11 into a variable.
Please can someone indicate the code needed to do this?
Thanks.