Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eiel/flow-interfaces-chatwork-client-gas
flow type definitions for Chatwork Client GAS
https://github.com/eiel/flow-interfaces-chatwork-client-gas
chatwork flow google-apps-script
Last synced: about 1 month ago
JSON representation
flow type definitions for Chatwork Client GAS
- Host: GitHub
- URL: https://github.com/eiel/flow-interfaces-chatwork-client-gas
- Owner: eiel
- License: mit
- Created: 2017-09-23T00:34:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-22T14:35:20.000Z (over 6 years ago)
- Last Synced: 2024-10-31T17:45:35.761Z (2 months ago)
- Topics: chatwork, flow, google-apps-script
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/flow-interfaces-chatwork-client-gas
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flow-interfaces-chatwork-client-gas
## Usage
### install
```
npm install --save-dev flow-interfaces-chatwork-client-gas
```### Flow Config
Add the interfaces to your '.flowconfig'
```
[libs]
node_modules/flow-interfaces-chatwork-client-gas/definitions
```## Example
### Setup
```
$ npm install yarn
$ yarn add --dev flow-bin flow-interfaces-chatwork-client-gas
$ echo "[libs]
node_modules/flow-interfaces-chatwork-client-gas/definitions" > .flowconfig
```code: `index.js`
```javascript
// @flowfunction sendMessage() {
var client = ChatWorkClient.factory({tokn: 'xxx'}); // typo token
client.sendMessage({room_id: 'xx', body: 'xx'});
}
```execute:
```
$ flow
yarn run flow 7s 922ms
yarn run v1.0.2
warning package.json: No license field
$ "/Users/eiel/Documents/Programming/cwgas-sample/node_modules/.bin/flow"
Library type error:
node_modules/flow-interfaces-chatwork-client-gas/definitions/ChatWork.js:8
8: factory(config: gas$ChatWork$Config): gas$ChatWorkClient$ChatWork;
^^^^^^^^^^^^^^^^^^^ property `token` of gas$ChatWork$Config. Property not found in
4: var client = ChatWorkClient.factory({tokn: 'xxx'}); // typo token
^^^^^^^^^^^^^ object literal. See: index.js:4
```# Link
* [cw-shibuya/chatwork-client-gas GitHub](https://github.com/cw-shibuya/chatwork-client-gas)