Search

251 results found for api.github.com (1004ms)

Code
211

// Fetch issues
const issuesResponse = await fetch(
`https://api.github.com/repos/${owner}/${repo}/issues?since=${twentyFourHoursAgo}&state=all`
{ headers },
);
// Fetch PRs
const prsResponse = await fetch(
`https://api.github.com/repos/${owner}/${repo}/pulls?state=all&since=${twentyFourHoursAgo}`,
{ headers },
);
`;
const response = await fetch('https://api.github.com/gists', {
method: 'POST',
headers: {
}
const url = `https://api.github.com/repos/${owner}/${repo}/contents/${path}`;
try {
*/
async getRepoMetadata(owner: string, repo: string) {
const url = `https://api.github.com/repos/${owner}/${repo}`;
const response = await fetch(url, {
const GITHUB_OAUTH_URL = "https://github.com/login/oauth/authorize";
const GITHUB_TOKEN_URL = "https://github.com/login/oauth/access_token";
const GITHUB_USER_API = "https://api.github.com/user";
// Initiate OAuth flow
env: Env
): Promise<boolean> {
const response = await fetch(`https://api.github.com/orgs/${org}/members/${username}`, {
headers: {
"Authorization": `Bearer ${env?.GITHUB_APP_TOKEN}`, // Needs org:read scope
): Promise<boolean> {
const response = await fetch(
`https://api.github.com/orgs/${org}/teams/${teamSlug}/memberships/${username}`,
{
headers: {
async function checkStargazers(repo: string) {
console.log(`Fetching repo data for ${repo}`);
const response = await fetch(`https://api.github.com/repos/${repo}`, {
headers: { "Authorization": `Bearer ${Deno.env.get("GITHUB_TOKEN")}` }
});
console.log(`Fetching stargazers page ${lastPage}`);
const starResponse = await fetch(
`https://api.github.com/repos/${repo}/stargazers?per_page=100&page=${lastPage}`,
{
headers: {
): Promise<GitHubEvent[]> {
const url =
`https://api.github.com/users/${username}/events?per_page=30&page=${page}`;
const headers: Record<string, string> = {
def fetch_github_events_paginated(username, token, max_events=50):
"""Fetch GitHub events for the specified user, one page at a time"""
base_url = f"https://api.github.com/users/{username}/events"
headers = {
function buildGithubApiContentsUrl({ org, repo, branch, dirPath }) {
const path = dirPath ? `/contents/${dirPath}` : `/contents`;
return `https://api.github.com/repos/${org}/${repo}${path}?ref=${encodeURIComponent(branch)}`;
}
function buildGithubApiContentsUrl({ org, repo, branch, dirPath }) {
const path = dirPath ? `/contents/${dirPath}` : `/contents`;
return `https://api.github.com/repos/${org}/${repo}${path}?ref=${encodeURIComponent(branch)}`;
}
async function checkStargazers(repo: string) {
console.log(`Fetching repo data for ${repo}`);
const response = await fetch(`https://api.github.com/repos/${repo}`, {
headers: { "Authorization": `Bearer ${Deno.env.get("GITHUB_TOKEN")}` }
});
console.log(`Fetching stargazers page ${lastPage}`);
const starResponse = await fetch(
`https://api.github.com/repos/${repo}/stargazers?per_page=100&page=${lastPage}`,
{
headers: {

Vals

No vals found

Users

No users found

Docs

40
View more
as browserless. Make an API call to the /scrape API. Section titled “Make an API call to the /scrape API” Check the documentation for the /scrape API and form your
Be sure to audit all your dependencies recursively for such vals. API Token Lifecycles. Section titled “API Token Lifecycles” API Tokens come with configurable expiration dates. We strongly recommend setting
Sheets API: Use Pipedream’s Accounts API to fetch a fresh OAuth access token at runtime. Use your own Google Cloud service account. Use Pipedream’s Accounts API. Section titled “Use Pipedream’s
Town’s REST API should not be confused with HTTP triggers, which allow you to create your own custom HTTP endpoints within vals. API Reference Interactive reference documentation for our API
Store and retrieve any data OpenAI Use the OpenAI API Email Send emails API and SDK. Section titled “API and SDK” REST API Access Val Town programmatically JavaScript SDK Interact
large language models, advanced image generation models, and previously, also open-source models.[11][12] API call to external services. Section titled “API call to external services” See the Hosted Puppeteer guide for
authenticated with an API token, so create an API token on Val Town, and set it in your terminal environment: Setting your Val Town API Token export VAL_TOWN_API_KEY=your api token…
this Steel Puppeteer val. Get your free Steel API key. Add it to your Environment Variables (via left sidebar of your val) as STEEL_API_KEY. Click Run on the main.tsx file.
Javascript Fetch API due to extra network hops. Usage. Section titled “Usage” After importing std/fetch, the fetch method is used with the same signature as the Javascript Fetch API. ExampleRun
a free Kernel account and generate an API key from Settings → API Keys. Add it to your val’s Environment Variables (left sidebar) as KERNEL_API_KEY. Click Run on puppeteer.ts. View