Issue a one-hour personal Git HTTPS password for the managed skills repository
curl --request POST \
--url https://app.factorize.sh/api/v1/skill-library/git-token \
--cookie factorize_session=import requests
url = "https://app.factorize.sh/api/v1/skill-library/git-token"
headers = {"cookie": "factorize_session="}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {cookie: 'factorize_session='}};
fetch('https://app.factorize.sh/api/v1/skill-library/git-token', 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 => "https://app.factorize.sh/api/v1/skill-library/git-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_COOKIE => "factorize_session=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.factorize.sh/api/v1/skill-library/git-token"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cookie", "factorize_session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.factorize.sh/api/v1/skill-library/git-token")
.header("cookie", "factorize_session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.factorize.sh/api/v1/skill-library/git-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'factorize_session='
response = http.request(request)
puts response.read_body{
"username": "git",
"token": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}skill-library
Issue a one-hour personal Git HTTPS password for the managed skills repository
Interactive owner session required. The token is bound to this user, membership session version and repository. It cannot access GitHub mirrors or another team. Only its digest is stored. Use username git and the token as the password; never include it in the remote URL.
Requires the skills:write scope.
An interactive owner session is required; bearer tokens cannot call this operation.
POST
/
api
/
v1
/
skill-library
/
git-token
Issue a one-hour personal Git HTTPS password for the managed skills repository
curl --request POST \
--url https://app.factorize.sh/api/v1/skill-library/git-token \
--cookie factorize_session=import requests
url = "https://app.factorize.sh/api/v1/skill-library/git-token"
headers = {"cookie": "factorize_session="}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {cookie: 'factorize_session='}};
fetch('https://app.factorize.sh/api/v1/skill-library/git-token', 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 => "https://app.factorize.sh/api/v1/skill-library/git-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_COOKIE => "factorize_session=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.factorize.sh/api/v1/skill-library/git-token"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cookie", "factorize_session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.factorize.sh/api/v1/skill-library/git-token")
.header("cookie", "factorize_session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.factorize.sh/api/v1/skill-library/git-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'factorize_session='
response = http.request(request)
puts response.read_body{
"username": "git",
"token": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Response
One-hour Git credential