Skip to content

Commit 7b05266

Browse files
committed
Merge branch 'copy-push-files-action-9962554850-upload-functions' into development
2 parents 4e0fd17 + 5ced803 commit 7b05266

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
exports = async function(arg){
2+
const url = "https://api.stackexchange.com/2.3/answers?key=U4DMV*8nvpm3EOpvf69Rxw((&site=stackoverflow&page=1&pagesize=10&order=desc&sort=activity&filter=default";
3+
4+
const response = await context.http.get({ url: url })
5+
// The response body is a BSON.Binary object, so parse it:
6+
const result = EJSON.parse(response.body.text())
7+
// console.log(JSON.stringify(result));
8+
return result;
9+
}

0 commit comments

Comments
 (0)