Edits history of script submission #144 for ' Get a user (github)'

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    import { Octokit } from "https://cdn.skypack.dev/@octokit/rest";
    
    /*
    @param: {wmill.Resource<"github">} gh_auth - Resource containing Github Auth API Key
    Example:
    {
      auth: github_api_key
    }
    */
    export async function main(
      gh_auth: wmill.Resource<"github">,
      username: string,
    ) {
      const octokit = new Octokit({ auth: gh_auth.token });
      const response = await octokit.rest.users.getByUsername({
        username: username,
      });
    
      return response;
    }
    

    Submitted by adam186 1160 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    import { Octokit } from "https://cdn.skypack.dev/octokit?dts";
    
    /*
    @param: {wmill.Resource<"github">} gh_auth - Resource containing Github Auth API Key
    Example:
    {
      auth: github_api_key
    }
    */
    export async function main(
      gh_auth: wmill.Resource<"github">,
      username: string,
    ) {
      const octokit = new Octokit({ auth: gh_auth.token });
      const response = await octokit.rest.users.getByUsername({
        username: username,
      });
    
      return response;
    }
    

    Submitted by adam186 1160 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    import { Octokit } from "https://cdn.skypack.dev/octokit?dts";
    
    /*
    @param: {wmill.Resource<"github">} gh_auth - Resource containing Github Auth API Key
    Example:
    {
      auth: github_api_key
    }
    */
    export async function main(
      gh_auth: wmill.Resource<"github">,
      username: string,
    ) {
      const octokit = new Octokit(gh_auth);
      const response = await octokit.rest.users.getByUsername({
        username: username,
      });
    
      return response;
    }
    

    Submitted by adam186 1163 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    import { Octokit } from "https://cdn.skypack.dev/octokit?dts";
    
    /*
    @param: {wmill.Resource<"github">} gh_auth - Resource containing Github Auth API Key
    Example:
    {
      auth: github_api_key
    }
    */
    export async function main(
      gh_auth: wmill.Resource<"github">,
      username: string,
    ) {
      const octokit = new Octokit(gh_auth);
      const response = await octokit.rest.users.getByUsername({
        username: username,
      });
    
      return response;
    }
    

    Submitted by adam186 1197 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    import { Octokit } from "https://cdn.skypack.dev/octokit?dts";
    
    /*
    @param: {wmill.Resource<"github">} gh_auth - Resource containing Github Auth API Key
    Example:
    {
      auth: github_api_key
    }
    */
    export async function main(
      gh_auth: wmill.Resource<"github">,
      username: string,
    ) {
      const octokit = new Octokit(gh_auth);
      const response = await octokit.rest.users.getByUsername({
        username: username,
      });
    
      return response;
    }
    

    Submitted by lplit 1384 days ago