shipthis
Version:
ShipThis manages building and uploading your Godot games to the App Store and Google Play.
25 lines (22 loc) • 769 B
JavaScript
import axios from 'axios';
import { o as API_URL, p as getAuthedHeaders, I as castArrayObjectDates } from './index-BwnzoldS.js';
import 'node:fs';
async function getUserCredentials(pageSize = 100) {
const headers = getAuthedHeaders();
const { data } = await axios({
headers,
method: "get",
url: `${API_URL}/credentials?pageSize=${pageSize}`
});
return castArrayObjectDates(data.data);
}
async function getProjectCredentials(projectId, pageSize = 100) {
const headers = getAuthedHeaders();
const { data } = await axios({
headers,
method: "get",
url: `${API_URL}/projects/${projectId}/credentials?pageSize=${pageSize}`
});
return castArrayObjectDates(data.data);
}
export { getProjectCredentials as a, getUserCredentials as g };