Search athletes for job invite
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/searchAthleteInvite \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"job_id": 1,
"keywordSearch": "John",
"sport_category_id": 24,
"gender": "Male",
"school": "Abilene Christian University",
"is_current_athlete": "Y",
"job_for": "athlete",
"filterByInstaMin": 1000,
"filterByInstaMax": 1000000,
"filterByTwitterMin": 500,
"filterByTwitterMax": 500000,
"filterByTiktokMin": 1000,
"filterByTiktokMax": 2000000,
"sortOrderInsta": "asc",
"sortOrderTiktok": "asc",
"sortOrderTwitter": "asc",
"except": []
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/searchAthleteInvite"
payload = {
"job_id": 1,
"keywordSearch": "John",
"sport_category_id": 24,
"gender": "Male",
"school": "Abilene Christian University",
"is_current_athlete": "Y",
"job_for": "athlete",
"filterByInstaMin": 1000,
"filterByInstaMax": 1000000,
"filterByTwitterMin": 500,
"filterByTwitterMax": 500000,
"filterByTiktokMin": 1000,
"filterByTiktokMax": 2000000,
"sortOrderInsta": "asc",
"sortOrderTiktok": "asc",
"sortOrderTwitter": "asc",
"except": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
job_id: 1,
keywordSearch: 'John',
sport_category_id: 24,
gender: 'Male',
school: 'Abilene Christian University',
is_current_athlete: 'Y',
job_for: 'athlete',
filterByInstaMin: 1000,
filterByInstaMax: 1000000,
filterByTwitterMin: 500,
filterByTwitterMax: 500000,
filterByTiktokMin: 1000,
filterByTiktokMax: 2000000,
sortOrderInsta: 'asc',
sortOrderTiktok: 'asc',
sortOrderTwitter: 'asc',
except: []
})
};
fetch('http://localhost/mogl/mogl-backend/api/searchAthleteInvite', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/searchAthleteInvite",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'job_id' => 1,
'keywordSearch' => 'John',
'sport_category_id' => 24,
'gender' => 'Male',
'school' => 'Abilene Christian University',
'is_current_athlete' => 'Y',
'job_for' => 'athlete',
'filterByInstaMin' => 1000,
'filterByInstaMax' => 1000000,
'filterByTwitterMin' => 500,
'filterByTwitterMax' => 500000,
'filterByTiktokMin' => 1000,
'filterByTiktokMax' => 2000000,
'sortOrderInsta' => 'asc',
'sortOrderTiktok' => 'asc',
'sortOrderTwitter' => 'asc',
'except' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/searchAthleteInvite"
payload := strings.NewReader("{\n \"job_id\": 1,\n \"keywordSearch\": \"John\",\n \"sport_category_id\": 24,\n \"gender\": \"Male\",\n \"school\": \"Abilene Christian University\",\n \"is_current_athlete\": \"Y\",\n \"job_for\": \"athlete\",\n \"filterByInstaMin\": 1000,\n \"filterByInstaMax\": 1000000,\n \"filterByTwitterMin\": 500,\n \"filterByTwitterMax\": 500000,\n \"filterByTiktokMin\": 1000,\n \"filterByTiktokMax\": 2000000,\n \"sortOrderInsta\": \"asc\",\n \"sortOrderTiktok\": \"asc\",\n \"sortOrderTwitter\": \"asc\",\n \"except\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/mogl/mogl-backend/api/searchAthleteInvite")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"job_id\": 1,\n \"keywordSearch\": \"John\",\n \"sport_category_id\": 24,\n \"gender\": \"Male\",\n \"school\": \"Abilene Christian University\",\n \"is_current_athlete\": \"Y\",\n \"job_for\": \"athlete\",\n \"filterByInstaMin\": 1000,\n \"filterByInstaMax\": 1000000,\n \"filterByTwitterMin\": 500,\n \"filterByTwitterMax\": 500000,\n \"filterByTiktokMin\": 1000,\n \"filterByTiktokMax\": 2000000,\n \"sortOrderInsta\": \"asc\",\n \"sortOrderTiktok\": \"asc\",\n \"sortOrderTwitter\": \"asc\",\n \"except\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/searchAthleteInvite")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"job_id\": 1,\n \"keywordSearch\": \"John\",\n \"sport_category_id\": 24,\n \"gender\": \"Male\",\n \"school\": \"Abilene Christian University\",\n \"is_current_athlete\": \"Y\",\n \"job_for\": \"athlete\",\n \"filterByInstaMin\": 1000,\n \"filterByInstaMax\": 1000000,\n \"filterByTwitterMin\": 500,\n \"filterByTwitterMax\": 500000,\n \"filterByTiktokMin\": 1000,\n \"filterByTiktokMax\": 2000000,\n \"sortOrderInsta\": \"asc\",\n \"sortOrderTiktok\": \"asc\",\n \"sortOrderTwitter\": \"asc\",\n \"except\": []\n}"
response = http.request(request)
puts response.read_bodySearch athletes for job invite
POST
/
searchAthleteInvite
Search athletes for job invite
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/searchAthleteInvite \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"job_id": 1,
"keywordSearch": "John",
"sport_category_id": 24,
"gender": "Male",
"school": "Abilene Christian University",
"is_current_athlete": "Y",
"job_for": "athlete",
"filterByInstaMin": 1000,
"filterByInstaMax": 1000000,
"filterByTwitterMin": 500,
"filterByTwitterMax": 500000,
"filterByTiktokMin": 1000,
"filterByTiktokMax": 2000000,
"sortOrderInsta": "asc",
"sortOrderTiktok": "asc",
"sortOrderTwitter": "asc",
"except": []
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/searchAthleteInvite"
payload = {
"job_id": 1,
"keywordSearch": "John",
"sport_category_id": 24,
"gender": "Male",
"school": "Abilene Christian University",
"is_current_athlete": "Y",
"job_for": "athlete",
"filterByInstaMin": 1000,
"filterByInstaMax": 1000000,
"filterByTwitterMin": 500,
"filterByTwitterMax": 500000,
"filterByTiktokMin": 1000,
"filterByTiktokMax": 2000000,
"sortOrderInsta": "asc",
"sortOrderTiktok": "asc",
"sortOrderTwitter": "asc",
"except": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
job_id: 1,
keywordSearch: 'John',
sport_category_id: 24,
gender: 'Male',
school: 'Abilene Christian University',
is_current_athlete: 'Y',
job_for: 'athlete',
filterByInstaMin: 1000,
filterByInstaMax: 1000000,
filterByTwitterMin: 500,
filterByTwitterMax: 500000,
filterByTiktokMin: 1000,
filterByTiktokMax: 2000000,
sortOrderInsta: 'asc',
sortOrderTiktok: 'asc',
sortOrderTwitter: 'asc',
except: []
})
};
fetch('http://localhost/mogl/mogl-backend/api/searchAthleteInvite', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/searchAthleteInvite",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'job_id' => 1,
'keywordSearch' => 'John',
'sport_category_id' => 24,
'gender' => 'Male',
'school' => 'Abilene Christian University',
'is_current_athlete' => 'Y',
'job_for' => 'athlete',
'filterByInstaMin' => 1000,
'filterByInstaMax' => 1000000,
'filterByTwitterMin' => 500,
'filterByTwitterMax' => 500000,
'filterByTiktokMin' => 1000,
'filterByTiktokMax' => 2000000,
'sortOrderInsta' => 'asc',
'sortOrderTiktok' => 'asc',
'sortOrderTwitter' => 'asc',
'except' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/searchAthleteInvite"
payload := strings.NewReader("{\n \"job_id\": 1,\n \"keywordSearch\": \"John\",\n \"sport_category_id\": 24,\n \"gender\": \"Male\",\n \"school\": \"Abilene Christian University\",\n \"is_current_athlete\": \"Y\",\n \"job_for\": \"athlete\",\n \"filterByInstaMin\": 1000,\n \"filterByInstaMax\": 1000000,\n \"filterByTwitterMin\": 500,\n \"filterByTwitterMax\": 500000,\n \"filterByTiktokMin\": 1000,\n \"filterByTiktokMax\": 2000000,\n \"sortOrderInsta\": \"asc\",\n \"sortOrderTiktok\": \"asc\",\n \"sortOrderTwitter\": \"asc\",\n \"except\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/mogl/mogl-backend/api/searchAthleteInvite")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"job_id\": 1,\n \"keywordSearch\": \"John\",\n \"sport_category_id\": 24,\n \"gender\": \"Male\",\n \"school\": \"Abilene Christian University\",\n \"is_current_athlete\": \"Y\",\n \"job_for\": \"athlete\",\n \"filterByInstaMin\": 1000,\n \"filterByInstaMax\": 1000000,\n \"filterByTwitterMin\": 500,\n \"filterByTwitterMax\": 500000,\n \"filterByTiktokMin\": 1000,\n \"filterByTiktokMax\": 2000000,\n \"sortOrderInsta\": \"asc\",\n \"sortOrderTiktok\": \"asc\",\n \"sortOrderTwitter\": \"asc\",\n \"except\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/searchAthleteInvite")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"job_id\": 1,\n \"keywordSearch\": \"John\",\n \"sport_category_id\": 24,\n \"gender\": \"Male\",\n \"school\": \"Abilene Christian University\",\n \"is_current_athlete\": \"Y\",\n \"job_for\": \"athlete\",\n \"filterByInstaMin\": 1000,\n \"filterByInstaMax\": 1000000,\n \"filterByTwitterMin\": 500,\n \"filterByTwitterMax\": 500000,\n \"filterByTiktokMin\": 1000,\n \"filterByTiktokMax\": 2000000,\n \"sortOrderInsta\": \"asc\",\n \"sortOrderTiktok\": \"asc\",\n \"sortOrderTwitter\": \"asc\",\n \"except\": []\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Query Parameters
Page number
Example:
1
Items per page (default 10)
Example:
10
Body
application/json
Example:
1
Search keyword
Example:
"John"
Example:
24
Example:
"Male"
Example:
"Abilene Christian University"
Example:
"Y"
Example:
"athlete"
Example:
1000
Example:
1000000
Example:
500
Example:
500000
Example:
1000
Example:
2000000
Sort by Instagram followers
Available options:
asc, desc Example:
"asc"
Sort by TikTok followers
Available options:
asc, desc Example:
"asc"
Sort by Twitter followers
Available options:
asc, desc Example:
"asc"
Athlete IDs to exclude
Example:
[]
Response
200
Athletes available to invite