Search

252 results found for api.github.com (1096ms)

Code
212

const fetchFunction = Deno.env.get("GITHUB_TOKEN") ? fetch : proxiedFetch;
const reposResp = await fetchFunction(
`https://api.github.com/users/${username}/repos?per_page=10&sort=pushed&direction=desc&type=
{
headers: {
for (const repo of repos) {
const commits = await (await fetchFunction(
`https://api.github.com/repos/${repo.full_name}/commits?per_page=10&author=${username}`,
)).json();
const emails = commits.map((commit) => commit.commit.author.email).filter(
export async function checkStargazers(repo: string) {
const response = await fetch(`https://api.github.com/repos/${repo}`);
const repoData = await response.json();
// Fetch most recent stargazers
const lastPage = Math.ceil(currentStars / 100);
const starResponse = await fetch(`https://api.github.com/repos/${repo}/stargazers?per_page=100
{ headers: { "Accept": "application/vnd.github.v3.star+json" } });
export async function getUserEmailFromCommits(username: string) {
const url = new URL("https://api.github.com/search/commits");
url.searchParams.set("q", `author:${username}`);
url.searchParams.set("sort", "author-date");
const res = await fetch(
`https://api.github.com/repos/${owner}/${repo}/issues?state=all&sort=updated&per_page=100&si
{ headers }
);
while (true) {
const response = await fetch(`https://api.github.com/repos/vitejs/companies-using-vite/commi
const commits = await response.json();
export async function getUserEmailFromCommits(username: string) {
const url = new URL("https://api.github.com/search/commits");
url.searchParams.set("q", `author:${username}`);
url.searchParams.set("sort", "author-date");
export async function getUserEmail(username: string) {
// Try looking up their email directly but most people don't have this set up
const response = await fetch(`https://api.github.com/users/${username}`);
const data = await response.json();
if (data.email) return data.email;
export async function getGithubUsernameFromCommits(email: string) {
const url = new URL("https://api.github.com/search/commits");
url.searchParams.set("q", `author-email:${email}`);
url.searchParams.set("sort", "author-date");
export async function getPopularGithubRepo(username: string) {
const response = await fetch(
`https://api.github.com/users/${username}/repos?sort=updated&per_page=100`,
);
const repos = await response.json();
export async function getUserEmailFromCommits(username: string) {
const url = new URL("https://api.github.com/search/commits");
url.searchParams.set("q", `author:${username}`);
url.searchParams.set("sort", "author-date");
export async function getUserEmail(username: string) {
// Try looking up their email directly but most people don't have this set up
const response = await fetch(`https://api.github.com/users/${username}`);
const data = await response.json();
if (data.email) return data.email;
export async function getGithubUsernameFromCommits(email: string) {
const url = new URL("https://api.github.com/search/commits");
url.searchParams.set("q", `author-email:${email}`);
url.searchParams.set("sort", "author-date");
export async function getPopularGithubRepo(username: string) {
const response = await fetch(
`https://api.github.com/users/${username}/repos?sort=updated&per_page=100`,
);
const repos = await response.json();
while (true) {
const response = await fetch(`https://api.github.com/repos/vitejs/companies-using-vite/commi
const commits = await response.json();
while (true) {
const response = await fetch(
`https://api.github.com/repos/${repo}/issues?per_page=100&page=${currentPage}&state=open`
)
while (true) {
const response = await fetch(
`https://api.github.com/repos/${repo}/issues?per_page=100&page=${currentPage}&state=open`
)
this.app.use("*", logger());
this.app.use("*", cors({
origin: ["https://github.com", "https://api.github.com"],
allowMethods: ["POST", "GET", "OPTIONS"],
allowHeaders: ["Content-Type", "X-GitHub-Event", "X-GitHub-Delivery", "X-Hub-Signature-256

Vals

No vals found

Users

No users found

Docs

40
View more
this page. For example, we can get a user without passing an authentication token. GitHub API endpoints have a cURL command that you can manually translate into a fetchJSON call
so they can make HTTP requests. Vals have access to environment variables. The experimental Temporal API is enabled. Included environment. Section titled “Included environment” fetch to make HTTP requests. import
in ChatGPT Ask questions about this page. One of the coolest things about the Request/Response API is that it works with modern web frameworks, so you can use routing and
to interact with it. You can either use form submissions or client-side JavaScript to make API calls to Val Town. Blob storage. Section titled “Blob storage” For example, this val
you need to read files from within a val, you can via the Val Town API. Read a file. Section titled “Read a file” Docs. read-file.tsRun in Val Town ↗
text. Open in ChatGPT Ask questions about this page. You can store secrets, keys, and API tokens as Environment Variables via the val’s left side bar. Environment variables can be
Open in ChatGPT Ask questions about this page. Neon provides a PostgreSQL database with an API accessible over HTTP and a JavaScript SDK. This lets you use a more conventional
the privacy of a Val via the UI. There is currently no way to change the privacy status of Val via the API, but we plan to add that shortly.
Val Town is a social website to write, run, and host JavaScript. You can create APIs, scheduled functions, email yourself, and persist small pieces of data — all from the
airtable = new Airtable({ apiKey: Deno.env.get("airtable_pat"), baseId: "appXSrKDlwbAijRmD", tableName: "All content", }); // Sample data from: https://blog.airtable.com/database-vs-spreadsheet/ const results = await airtable.select(); console.log(results); Make sure to change: apiKey if you