{"id":16123637,"url":"https://github.com/austenstone/venmo-typescript","last_synced_at":"2025-03-18T12:31:27.526Z","repository":{"id":40531856,"uuid":"507612166","full_name":"austenstone/venmo-typescript","owner":"austenstone","description":"Venmo API fetch library","archived":false,"fork":false,"pushed_at":"2023-07-19T18:11:03.000Z","size":591,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T09:18:06.920Z","etag":null,"topics":["typescript","venmo","venmo-api"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/venmo-typescript","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/austenstone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["austenstone"]}},"created_at":"2022-06-26T15:29:14.000Z","updated_at":"2024-02-20T00:18:35.000Z","dependencies_parsed_at":"2024-10-27T18:14:50.442Z","dependency_job_id":"0445257e-0f09-48a2-963a-f5d490e5abf8","html_url":"https://github.com/austenstone/venmo-typescript","commit_stats":{"total_commits":40,"total_committers":2,"mean_commits":20.0,"dds":"0.17500000000000004","last_synced_commit":"8d4ba5241b6d0e0e9107389c4d3aca733dfe4d3d"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":"austenstone/typescript-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austenstone%2Fvenmo-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austenstone%2Fvenmo-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austenstone%2Fvenmo-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austenstone%2Fvenmo-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austenstone","download_url":"https://codeload.github.com/austenstone/venmo-typescript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926046,"owners_count":20369911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["typescript","venmo","venmo-api"],"created_at":"2024-10-09T21:17:58.300Z","updated_at":"2025-03-18T12:31:27.167Z","avatar_url":"https://github.com/austenstone.png","language":"TypeScript","funding_links":["https://github.com/sponsors/austenstone"],"categories":[],"sub_categories":[],"readme":"# Venmo Typescript \u0026middot; [![npm version](https://img.shields.io/npm/v/venmo-typescript.svg?style=flat)](https://www.npmjs.com/package/venmo-typescript)\n\nTypescript/Javascript library for interacting with the [Venmo API](https://github.com/mmohades/VenmoApiDocumentation).\n\n## Examples\n\n### Payment\n\nThis example will login and request $1.00 from the users listed in `USERNAMES`.\n\n\u003e `-` Negative amounts are payment requests.\u003cbr\u003e`+` Positive amounts are payments.\n\n```typescript\n// Create a venmo client.\nconst v = new Venmo();\nawait v.easyLogin(process.env.EMAIL, process.env.PASSWORD);\n\nconst usernames = process.env.USERNAMES?.split(',') || [];\n// For each recipient username\nfor (const username of usernames) {\n    // Query user so we can get the id.\n    const userResponse = await v.userQuery(username);\n    const user = userResponse?.find(\n        (user) =\u003e user.username.toLowerCase() === username.toLowerCase()\n    );\n    if (user) {\n        // Request payment with the user id.\n        const paymentRes = await v.pay(user.id, -1, 'Note for transaction.', 'private');\n    }\n}\n```\n\n### Deal with 2FA OTP code\nYou can deal with 2FA by passing a callback function that returns the otp code. In this example we are using stdin to have the user manually type the code they get via SMS.\n```typescript\nimport { Venmo } from \"venmo-typescript\";\nimport readline from 'readline';\n\nconst v = new Venmo();\nawait v.easyLogin(process.env.EMAIL, process.env.PASSWORD, async () =\u003e {\n  return await new Promise((res) =\u003e {\n    readline.createInterface({\n      input: process.stdin,\n      output: process.stdout\n    }).question('Enter OTP code:', (answer) =\u003e res(answer))\n  });\n});\n```\n\n### Get My Profile\n\n```typescript\nimport { Venmo } from \"venmo-typescript\";\n\nconst v = new Venmo();\nawait v.easyLogin(process.env.EMAIL, process.env.PASSWORD);\nconsole.log(await v.getUserProfile());\n```\n\n## Manual Login\nYou can also manually login and manage the otp code yourself. See how [easyLogin](https://github.com/austenstone/venmo-typescript/blob/a3d47c5e86f122815caf92a0bbe054d03d9700b4/src/index.ts#L63) works.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustenstone%2Fvenmo-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustenstone%2Fvenmo-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustenstone%2Fvenmo-typescript/lists"}