hud-ai
Version:
Hud.ai API Client
67 lines (52 loc) • 1.79 kB
Markdown
# Tweet
| Attribute | Type | Description |
| --------- | ---- | ----------- |
| `id` | String | Resource ID **Cannot be edited** |
| `createdAt` | Date | Creation date **Cannot be edited** |
| `updatedAt` | Date | Last touch date **Cannot be edited** |
| `personId`* | **String** | Associated person |
| `twitterTweetId`* | **String** | Associated twitter tweet id |
| `text`* | **String** | Content of the tweet |
| `importanceScore`*| Number | Tweet importance score |
## `client.tweets.list(params)`
| Param | Type |
|-------|------|
| `params` | Object |
| `params.personId` | string |
| `params.limit` | number |
| `params.offset` | number |
| `params.twitterTweetId` | string |
| `params.text` | string |
| `params.minImportance` | number |
| `params.maxImportance` | number |
| `params.terms` | string |
| `params.createdBefore` | date |
| `params.createdAfter` | date |
## `client.tweets.search(params)`
| Param | Type |
|-------|------|
| `params` | Object |
| `params.personId` | string |
| `params.limit` | number |
| `params.offset` | number |
| `params.importanceScore` | number |
## `client.tweets.create(params)`
| Param | Type |
|-------|------|
| `params` | Object |
| `params.personId`* | **string** |
| `params.twitterTweetId`* | **number** |
| `params.text`* | **string** |
| `params.importanceScore`| number |
## `client.tweets.get(id)`
| Param | Type |
|-------|------|
| `id` | string |
## `client.tweets.getByTwitterId(id)`
| Param | Type |
|-------|------|
| `id` | string |
## `client.tweets.destroy(params)`
| Param | Type |
|-------|------|
| `id` | string |