-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_calls.sh
13 lines (11 loc) · 1.27 KB
/
api_calls.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# GET REQUESTS
curl -i -H
# POST REQUESTS POST REQUESTS POST REQUESTS POST REQUESTS POST REQUESTS
# Initialize
curl -X POST -H "Content-Type: application/json" -d '{"models":["untrustworthy"]}' "http://0.0.0.0:6969/v1/gizmoduck/initialize/?app_id=SYNAPSIFY&app_key=908cecfa-9944-4e67-a05a-f9c200a9533e"
curl -X POST -H "Content-Type: application/json" -d '{"models":["untrustworthy"]}' "http://ec2-52-2-226-239.compute-1.amazonaws.com:8000/v1/gizmoduck/initialize/?app_id=SYNAPSIFY&app_key=908cecfa-9944-4e67-a05a-f9c200a9533e"
# Classify
curl -X POST -H "Content-Type: application/json" -d '{"sentences":["what it is mutha fucka"],"model":["untrustworthy"]}' "http://0.0.0.0:6969/v1/gizmoduck/classify_one/?app_id=SYNAPSIFY&app_key=908cecfa-9944-4e67-a05a-f9c200a9533e"
curl -X POST -H "Content-Type: application/json" -d '{"sentences":["what it is mutha fucka"],"model":["untrustworthy"]}' "http://ec2-52-2-226-239.compute-1.amazonaws.com:8000/v1/gizmoduck/classify_one/?app_id=SYNAPSIFY&app_key=908cecfa-9944-4e67-a05a-f9c200a9533e"
curl -X POST -H "Content-Type: application/json" -d '{"sentences":["what it is mutha fucka"],"model":["untrustworthy"]}' "http://api.general-influence.com:8000/v1/gizmoduck/classify_one/?app_id=SYNAPSIFY&app_key=908cecfa-9944-4e67-a05a-f9c200a9533e"