{"id":21804045,"url":"https://github.com/tylerlong/glip-client","last_synced_at":"2025-07-29T12:11:46.136Z","repository":{"id":142317999,"uuid":"76437746","full_name":"tylerlong/glip-client","owner":"tylerlong","description":"A simple Glip client implementation","archived":false,"fork":false,"pushed_at":"2018-03-26T01:25:28.000Z","size":168,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T01:04:40.516Z","etag":null,"topics":["glip","glip-client"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/tylerlong.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}},"created_at":"2016-12-14T08:00:04.000Z","updated_at":"2018-03-26T01:25:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"1564fb6b-f847-41c3-a891-c8e8660f6bda","html_url":"https://github.com/tylerlong/glip-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tylerlong/glip-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlong%2Fglip-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlong%2Fglip-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlong%2Fglip-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlong%2Fglip-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tylerlong","download_url":"https://codeload.github.com/tylerlong/glip-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlong%2Fglip-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267684996,"owners_count":24127703,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["glip","glip-client"],"created_at":"2024-11-27T11:52:57.751Z","updated_at":"2025-07-29T12:11:46.105Z","avatar_url":"https://github.com/tylerlong.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Glip Client\n\n## Deprecation warning\n\nThis project has been deprecated. You should use the [official RingCentral JS SDK](https://github.com/ringcentral/ringcentral-js) instead.\n\nThis is a simple Glip client implementation. It currently supports the following features:\n\n- [posts](test/posts.js)\n    - send message\n    - receive messages in real time\n    - monitor message modification and removal in real time\n    - get message(s)\n- [groups](test/groups.js)\n    - get group(s)/team(s)\n    - monitor group events\n- [persons](test/persons.js)\n    - get person\n- [companies](test/companies.js)\n    - get company\n\n\n## Requirement\n\nNode.js 4.2 as mimimum.\n\n\n## Installation\n\n```\nyarn add glip-client\n```\n\nor\n\n```\nnpm install --save glip-client\n```\n\n\n## Usage\n\nPlease check the [test](examples).\n\nHere is a code snippet to help you to get started quickly:\n\n```javascript\nrequire('dotenv').config()\nconst GlipClient = require('glip-client')\n\nconst gc = new GlipClient({\n  server: process.env.SERVER, // https://platform.ringcentral.com for production or https://platform.devtest.ringcentral.com for sandbox\n  appKey: process.env.APP_KEY,\n  appSecret: process.env.APP_SECRET,\n  appName: 'My Glip Client',\n  appVersion: '1.0.0'\n})\ngc.authorize({\n  username: process.env.USERNAME,\n  extension: process.env.EXTENSION,\n  password: process.env.PASSWORD\n}).then((response) =\u003e {\n  console.log('logged in')\n\n  gc.posts().subscribe((message) =\u003e {\n    if (message.messageType === 'PostAdded') { // receive new messages\n      console.log(message)\n      if (message.post.text === 'ping') {\n        gc.posts().post({ groupId: message.post.groupId, text: 'pong' }).then((response) =\u003e { // send message\n          console.log(response)\n        })\n      }\n    } else { // other message events, such as PostChanged and PostRemoved\n      console.log(message)\n    }\n  })\n\n  gc.posts().get({ groupId: process.env.GROUP }).then((response) =\u003e { // get messages by group id\n    console.log(`${response.records.length} posts were found.`)\n  })\n\n  gc.posts().get({ postId: process.env.POST }).then((response) =\u003e { // get message by id\n    console.log(response)\n  })\n})\n```\n\n\n## Login Glip to test\n\nFor sandbox, please login https://glip.devtest.ringcentral.com/\n\nFor production, please login https://app.glip.com/\n\n\n## Todo\n\n- support batch operations\n    - postpone, maybe multipart/mixed will be replaced with JSON array.\n- Write real unit testing\n- Setup Travis CI and Coveralls\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerlong%2Fglip-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftylerlong%2Fglip-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerlong%2Fglip-client/lists"}