axios example
by Derek Anderson
JavaScript
// Make a GET request
axios({
method: 'post',
headers: {
"x-forwarded-for": "72.52.80.4",
"x-forwarded-proto": "https",
"x-forwarded-port": "443",
"host": "17e026027b3e6d9524acf556cf4060fa.m.pipedream.net",
"x-amzn-trace-id": "Root=1-60ef306a-634b316719faeea16ca0e907",
"content-length": "7080",
"user-agent": "Discourse/2.8.0.beta2",
"accept": "*/*",
"content-type": "application/json",
"x-discourse-instance": "https://forum.akash.network",
"x-discourse-event-id": "61",
"x-discourse-event-type": "user",
"x-discourse-event": "user_created",
"x-discourse-event-signature": "sha256=74335e286030dd5ca57b94260f855c121cd14eafa86780a81cf7b660f533cc74",
"accept-encoding": "deflate, gzip"
},
url: 'https://17e026027b3e6d9524acf556cf4060fa.m.pipedream.net',
data: {
"user": {
"id": 99999,
"username": "Adam_Akash",
"name": "Adam",
"avatar_template": "/user_avatar/forum.akash.network/adam_akash/{size}/55_2.png",
"email": "[email protected]",
"secondary_emails": [],
"last_posted_at": "2021-07-14T13:39:13.261Z",
"last_seen_at": "2021-07-14T18:39:41.881Z",
"created_at": "2021-05-03T20:37:22.031Z",
"muted": false,
"trust_level": 4,
"moderator": false,
"admin": true,
"title": "Akash Founder",
"badge_count": 6,
"user_fields": {
"1": null,
"5": null,
"6": null,
"7": null
},
"time_read": 605,
"recent_time_read": 565,
"primary_group_id": null,
"primary_group_name": null,
"flair_name": null,
"flair_url": null,
"flair_bg_color": null,
"flair_color": null,
"featured_topic": null,
"timezone": "America/New_York",
"bio_excerpt": null,
"staged": false,
"bio_cooked": null,
"pending_count": 0,
"profile_view_count": 1,
"second_factor_enabled": false,
"can_upload_profile_header": true,
...