This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
1
Not able to get headers - only row data
Post Flair (click to view more posts with a particular flair)
Post Body
So I have this, which pulls row data:
$url = 'https://sheets.googleapis.com/v4/spreadsheets/{spreadsheet id}/values/{SheetTabName}?key={mykey}'
(Invoke-RestMethod -uri $url ).values | select -first 3 | % {
$qc = $_
$qc | % {"Data $_"
}
}
The problem is while it goes through row by row I would like it if each row had the header. So I could access the data using the header and not just the index where I expect the header to be.
Something like:
$url = 'https://sheets.googleapis.com/v4/spreadsheets/{spreadsheet id}/values/{SheetTabName}?key={mykey}'
(Invoke-RestMethod -uri $url ).values | select -first 3 | % {
$qc = $_
$qc | % {"Data $($_.HeaderName)"
}
}
Any suggestions on what to do?
Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
26,663
Link Karma
8,214
Comment Karma
18,430
Profile updated: 1 week ago
Posts updated: 8 months ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/googlesheet...