monday_ruby 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.env +1 -0
- data/.rubocop.yml +5 -1
- data/CHANGELOG.md +19 -0
- data/README.md +37 -2
- data/docs/README.md +13 -0
- data/docs/SUMMARY.md +40 -0
- data/docs/client.md +15 -0
- data/docs/configuration.md +40 -0
- data/docs/error-handling.md +71 -0
- data/docs/getting-started.md +25 -0
- data/docs/quick-start.md +269 -0
- data/docs/resources/README.md +27 -0
- data/docs/resources/account/README.md +9 -0
- data/docs/resources/account/accounts.md +82 -0
- data/docs/resources/activity-log/README.md +9 -0
- data/docs/resources/activity-log/activity_logs.md +95 -0
- data/docs/resources/board/README.md +21 -0
- data/docs/resources/board/archive_board.md +79 -0
- data/docs/resources/board/boards.md +96 -0
- data/docs/resources/board/create_board.md +95 -0
- data/docs/resources/board/delete_board.md +79 -0
- data/docs/resources/board/delete_board_subscribers.md +87 -0
- data/docs/resources/board/duplicate_board.md +94 -0
- data/docs/resources/board/update_board.md +91 -0
- data/docs/resources/board-view/README.md +9 -0
- data/docs/resources/board-view/board_views.md +88 -0
- data/docs/resources/column/README.md +25 -0
- data/docs/resources/column/change_column_metadata.md +70 -0
- data/docs/resources/column/change_column_title.md +68 -0
- data/docs/resources/column/change_column_value.md +73 -0
- data/docs/resources/column/change_multiple_column_value.md +81 -0
- data/docs/resources/column/change_simple_column_value.md +69 -0
- data/docs/resources/column/column_values.md +115 -0
- data/docs/resources/column/columns.md +117 -0
- data/docs/resources/column/create_column.md +70 -0
- data/docs/resources/column/delete_column.md +58 -0
- data/docs/resources/item/README.md +17 -0
- data/docs/resources/item/archive_item.md +80 -0
- data/docs/resources/item/create_item.md +105 -0
- data/docs/resources/item/delete_item.md +80 -0
- data/docs/resources/item/duplicate_item.md +87 -0
- data/docs/resources/item/items.md +95 -0
- data/docs/response.md +21 -0
- data/lib/monday/client.rb +38 -10
- data/lib/monday/configuration.rb +11 -1
- data/lib/monday/error.rb +92 -0
- data/lib/monday/response.rb +4 -1
- data/lib/monday/util.rb +30 -0
- data/lib/monday/version.rb +1 -1
- data/lib/monday_ruby.rb +13 -0
- data/monday_ruby.gemspec +2 -2
- metadata +45 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b952365eaf332b933932dea993d33470bc585c9eadcf0dc7525e4550794313d2
|
4
|
+
data.tar.gz: 665a9d53d8a06972f88022040a28bf8003fa13247aa0bdac60e21f7ca8be9da5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2af82867a8586bb1bdd6f665f6e584b9e41ea76d0a74fab00f56d408d4357fee4986fde25df96403f0ba8284a4ecc99c61e97e1a4e9668e6024ca7e94574a22e
|
7
|
+
data.tar.gz: 7b66ffafb1c9bfd6bb5c24de9c19438acf89ba59a0a07204ca76a38e18bd043e183077ccda3042453560f71f18c307c73bf8b6f1d161e75a42a39bcadb468229
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.7
|
3
3
|
NewCops: enable
|
4
4
|
|
5
5
|
Style/StringLiterals:
|
@@ -16,3 +16,7 @@ Layout/LineLength:
|
|
16
16
|
Metrics/BlockLength:
|
17
17
|
Exclude:
|
18
18
|
- "spec/**/*_spec.rb"
|
19
|
+
|
20
|
+
Metrics/MethodLength:
|
21
|
+
Exclude:
|
22
|
+
- "lib/monday/util.rb"
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
## v0.3.0 (July 10, 2023)
|
2
|
+
|
3
|
+
### Added
|
4
|
+
|
5
|
+
- Improved error handling
|
6
|
+
- Support to configure the API version
|
7
|
+
- Coverage report
|
8
|
+
|
9
|
+
## v0.2.0 (July 04, 2023)
|
10
|
+
|
11
|
+
### Added
|
12
|
+
|
13
|
+
- Support for global config
|
14
|
+
- VCR for test suite
|
15
|
+
|
16
|
+
### Removed
|
17
|
+
|
18
|
+
- [BREAKING] Support for Ruby 2.6
|
19
|
+
|
1
20
|
## v0.1.0 (June 28, 2023)
|
2
21
|
|
3
22
|
- Initial release
|
data/README.md
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
# Monday API Library for Ruby
|
2
2
|
|
3
3
|

|
4
|
+
[](https://badge.fury.io/rb/monday_ruby)
|
5
|
+
[](https://coveralls.io/github/sanifhimani/monday_ruby?branch=main)
|
4
6
|
|
5
|
-
This library provides convenient access to the
|
7
|
+
This library provides convenient access to the monday.com API from the application written in the Ruby language.
|
8
|
+
|
9
|
+
The library provides:
|
10
|
+
|
11
|
+
1. A pre-defined set of methods to easily interact with the API resources.
|
12
|
+
2. Easy configuration path for fast setup and use.
|
13
|
+
3. Easy error handling.
|
6
14
|
|
7
15
|
**Visit https://monday-ruby.gitbook.io/docs/ for detailed documentation on how to use the library.**
|
8
16
|
|
@@ -22,7 +30,7 @@ gem build monday_ruby.gemspec
|
|
22
30
|
|
23
31
|
### Requirements
|
24
32
|
|
25
|
-
* Ruby 2.
|
33
|
+
* Ruby 2.7+
|
26
34
|
|
27
35
|
### Bundler
|
28
36
|
|
@@ -40,12 +48,39 @@ gem "monday_ruby"
|
|
40
48
|
|
41
49
|
The library needs to be configured with your account's authentication token which is available on the Admin tab on monday.com. Elaborate documentation can be found [here](https://developer.monday.com/api-reference/docs/authentication).
|
42
50
|
|
51
|
+
### Configuration
|
52
|
+
|
53
|
+
Once you have the authentication token, you can either globally configure the library or you can configure a specific client.
|
54
|
+
|
55
|
+
#### Global config
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
require "monday_ruby"
|
59
|
+
|
60
|
+
Monday.configure do |config|
|
61
|
+
config.token = "<AUTH_TOKEN>"
|
62
|
+
end
|
63
|
+
|
64
|
+
```
|
65
|
+
|
66
|
+
#### Client specific config
|
43
67
|
```ruby
|
44
68
|
require "monday_ruby"
|
45
69
|
|
46
70
|
client = Monday::Client.new(token: "<AUTH_TOKEN>")
|
47
71
|
```
|
48
72
|
|
73
|
+
You can optionally pass in the version of the API you want to use using the version configuration field. By default, the latest stable version is used.
|
74
|
+
|
75
|
+
```ruby
|
76
|
+
require "monday_ruby"
|
77
|
+
|
78
|
+
Monday.configure do |config|
|
79
|
+
config.token = "<AUTH_TOKEN>"
|
80
|
+
config.version = "2023-07"
|
81
|
+
end
|
82
|
+
```
|
83
|
+
|
49
84
|
### Accessing a response object
|
50
85
|
|
51
86
|
Get access to response objects by initializing a client and using the appropriate action you want to perform:
|
data/docs/README.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Monday API Library for Ruby
|
2
|
+
|
3
|
+
This library provides convenient access to the monday.com API from the application written in the Ruby language.
|
4
|
+
|
5
|
+
The library provides:
|
6
|
+
|
7
|
+
1. A pre-defined set of methods to easily interact with the API resources.
|
8
|
+
2. Easy configuration path for fast setup and use.
|
9
|
+
3. Easy error handling
|
10
|
+
|
11
|
+
#### Requirements
|
12
|
+
|
13
|
+
* Ruby 2.7+
|
data/docs/SUMMARY.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# Table of contents
|
2
|
+
|
3
|
+
* [Monday API Library for Ruby](README.md)
|
4
|
+
* [Getting Started](getting-started.md)
|
5
|
+
* [Configuration](configuration.md)
|
6
|
+
* [Client](client.md)
|
7
|
+
* [Response](response.md)
|
8
|
+
* [Quick Start](quick-start.md)
|
9
|
+
* [Error Handling](error-handling.md)
|
10
|
+
* [Resources](resources/README.md)
|
11
|
+
* [Account](resources/account/README.md)
|
12
|
+
* [#accounts](resources/account/accounts.md)
|
13
|
+
* [Activity Log](resources/activity-log/README.md)
|
14
|
+
* [#activity\_logs](resources/activity-log/activity\_logs.md)
|
15
|
+
* [Board View](resources/board-view/README.md)
|
16
|
+
* [#board\_views](resources/board-view/board\_views.md)
|
17
|
+
* [Board](resources/board/README.md)
|
18
|
+
* [#boards](resources/board/boards.md)
|
19
|
+
* [#create\_board](resources/board/create\_board.md)
|
20
|
+
* [#duplicate\_board](resources/board/duplicate\_board.md)
|
21
|
+
* [#update\_board](resources/board/update\_board.md)
|
22
|
+
* [#archive\_board](resources/board/archive\_board.md)
|
23
|
+
* [#delete\_board](resources/board/delete\_board.md)
|
24
|
+
* [#delete\_board\_subscribers](resources/board/delete\_board\_subscribers.md)
|
25
|
+
* [Column](resources/column/README.md)
|
26
|
+
* [#columns](resources/column/columns.md)
|
27
|
+
* [#column\_values](resources/column/column\_values.md)
|
28
|
+
* [#create\_column](resources/column/create\_column.md)
|
29
|
+
* [#change\_column\_title](resources/column/change\_column\_title.md)
|
30
|
+
* [#change\_column\_metadata](resources/column/change\_column\_metadata.md)
|
31
|
+
* [#change\_column\_value](resources/column/change\_column\_value.md)
|
32
|
+
* [#change\_simple\_column\_value](resources/column/change\_simple\_column\_value.md)
|
33
|
+
* [#change\_multiple\_column\_value](resources/column/change\_multiple\_column\_value.md)
|
34
|
+
* [#delete\_column](resources/column/delete\_column.md)
|
35
|
+
* [Item](resources/item/README.md)
|
36
|
+
* [#items](resources/item/items.md)
|
37
|
+
* [#create\_item](resources/item/create\_item.md)
|
38
|
+
* [#duplicate\_item](resources/item/duplicate\_item.md)
|
39
|
+
* [#archive\_item](resources/item/archive\_item.md)
|
40
|
+
* [#delete\_item](resources/item/delete\_item.md)
|
data/docs/client.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Client
|
2
|
+
|
3
|
+
The Monday client is flat, meaning most API actions are available as methods on the client object. To initialize a client, run the following:
|
4
|
+
|
5
|
+
{% code lineNumbers="true" %}
|
6
|
+
```ruby
|
7
|
+
# If the library is configured globally
|
8
|
+
client_with_global_config = Monday::Client.new
|
9
|
+
|
10
|
+
# For a specific client
|
11
|
+
client = Monday::Client.new(token: <AUTH_TOKEN>)
|
12
|
+
```
|
13
|
+
{% endcode %}
|
14
|
+
|
15
|
+
You can then use all the [resources](resources/) using the client object.
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# Configuration
|
2
|
+
|
3
|
+
To interact with the API, you must provide a valid auth token. This token can be generated from the Administration tab on the account. For more authentication information, please look at monday.com's [API documentation](https://developer.monday.com/api-reference/docs/authentication).
|
4
|
+
|
5
|
+
Once you have the authentication token, you can either globally configure the library or you can configure a specific client.
|
6
|
+
|
7
|
+
### Global
|
8
|
+
|
9
|
+
To configure the library globally, you can do the following:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require "monday_ruby"
|
13
|
+
|
14
|
+
Monday.configure do |config|
|
15
|
+
config.token = <AUTH_TOKEN>
|
16
|
+
end
|
17
|
+
```
|
18
|
+
|
19
|
+
### Client specific config
|
20
|
+
|
21
|
+
To configure a client, you can do the following:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require "monday_ruby"
|
25
|
+
|
26
|
+
client = Monday::Client.new(token: <AUTH_TOKEN>)
|
27
|
+
```
|
28
|
+
|
29
|
+
You can optionally pass in the version of the API you want to use using the `version` configuration field.
|
30
|
+
|
31
|
+
By default, the latest stable version is used. Read more about the version on monday.com's [official documentation](https://developer.monday.com/api-reference/docs/api-versioning).
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
require "monday_ruby"
|
35
|
+
|
36
|
+
Monday.configure do |config|
|
37
|
+
config.token = <AUTH_TOKEN>
|
38
|
+
config.version = "2023-10"
|
39
|
+
end
|
40
|
+
```
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# Error Handling
|
2
|
+
|
3
|
+
Monday.com has a set of predefined errors and exceptions that are sent back from their GraphQL API. Refer to their [official documentation](https://developer.monday.com/api-reference/docs/errors) to know more about the error codes.
|
4
|
+
|
5
|
+
### Catching exceptions
|
6
|
+
|
7
|
+
If there is an error from the API, the library raises an exception. It's a best practice to catch and handle exceptions.
|
8
|
+
|
9
|
+
To catch an exception, use the `rescue` keyword. You can catch all the exceptions from the API using the `Monday::Error` class. However, it is recommended to catch specific exceptions using its subclasses and have a fallback rescue using `Monday::Error`.
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require "monday_ruby"
|
13
|
+
|
14
|
+
client = Monday::Client.new(token: <AUTH_TOKEN>)
|
15
|
+
|
16
|
+
def example
|
17
|
+
res = client.boards
|
18
|
+
puts res.body
|
19
|
+
rescue Monday::AuthorizationError => error
|
20
|
+
puts "Authorization error: #{error.message}"
|
21
|
+
puts "Error code: #{error.code}"
|
22
|
+
rescue Monday::Error => error
|
23
|
+
puts "Other error: #{error.message}"
|
24
|
+
end
|
25
|
+
```
|
26
|
+
|
27
|
+
Along with the default status code exceptions, monday.com returns some other exceptions with `200` status code. This library handles those errors and raises exceptions accordingly.
|
28
|
+
|
29
|
+
#### `Monday::InternalServer Error`
|
30
|
+
|
31
|
+
This exception is raised when the server returns a `500` status code. Read more about what can cause this error on Monday.com's [official documentation](https://developer.monday.com/api-reference/docs/errors#internal-server-error).
|
32
|
+
|
33
|
+
#### `Monday::AuthorizationError`
|
34
|
+
|
35
|
+
This exception is raised when the server returns a `401` or a `403` status code. This can happen when the client is not authenticated, i.e., not configured with the token, or the token is incorrect.
|
36
|
+
|
37
|
+
This exception is also raised when the server returns a `200` status code but the body returns `UserUnauthorizedException` error code.
|
38
|
+
|
39
|
+
#### `Monday::RateLimitError`
|
40
|
+
|
41
|
+
This exception is raised when the server returns a `429` status code. This can happen when you exceed the rate limit, i.e., 5,000 requests per minute. Read more about their rate limit on their [official documentation](https://developer.monday.com/api-reference/docs/rate-limits).
|
42
|
+
|
43
|
+
#### `Monday::ResourceNotFoundError`
|
44
|
+
|
45
|
+
This exception is raised when the server returns a `404` status code. This can happen when you pass an invalid ID in the query.
|
46
|
+
|
47
|
+
This exception is also raised when the server returns a `200` status code but the body returns `ResourceNotFoundException` error code.
|
48
|
+
|
49
|
+
#### `Monday::ComplexityError`
|
50
|
+
|
51
|
+
This exception is raised when the server returns a `200` status code but the body returns `ComplexityException` error code.
|
52
|
+
|
53
|
+
#### `Monday::InvalidRequestError`
|
54
|
+
|
55
|
+
This exception is raised when the server returns a `400` status code. This can happen when the query you pass is invalid.
|
56
|
+
|
57
|
+
This exception is also raised when the server returns a `200` status code but the body returns the following error codes:
|
58
|
+
|
59
|
+
1. `InvalidUserIdException`
|
60
|
+
2. `InvalidVersionException`
|
61
|
+
3. `InvalidColumnIdException`
|
62
|
+
4. `InvalidItemIdException`
|
63
|
+
5. `InvalidBoardIdException`
|
64
|
+
6. `InvalidArgumentException`
|
65
|
+
7. `CreateBoardException`
|
66
|
+
8. `ItemsLimitationException`
|
67
|
+
9. `ItemNameTooLongException`
|
68
|
+
10. `ColumnValueException`
|
69
|
+
11. `CorrectedValueException`
|
70
|
+
|
71
|
+
Read more about these specific exceptions on their [official API documentation](https://developer.monday.com/api-reference/docs/errors).
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Getting Started
|
2
|
+
|
3
|
+
### Installation
|
4
|
+
|
5
|
+
You don't need the source code unless you want to modify the gem. If you want to use the package, run the following:
|
6
|
+
|
7
|
+
```sh
|
8
|
+
gem install monday_ruby
|
9
|
+
```
|
10
|
+
|
11
|
+
If you want to build the gem from the source:
|
12
|
+
|
13
|
+
```sh
|
14
|
+
gem build monday_ruby.gemspec
|
15
|
+
```
|
16
|
+
|
17
|
+
### Bundler
|
18
|
+
|
19
|
+
If you are installing via bundler, you should be sure to use the HTTPS rubygems source in your Gemfile, as any gems fetched over HTTP could potentially be compromised in transit and alter the code of gems fetched securely over HTTPS:
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
source "https://rubygems.org"
|
23
|
+
|
24
|
+
gem "monday_ruby"
|
25
|
+
```
|
data/docs/quick-start.md
ADDED
@@ -0,0 +1,269 @@
|
|
1
|
+
# Quick Start
|
2
|
+
|
3
|
+
The following is the minimum needed to fetch all the boards with their IDs and column IDs:
|
4
|
+
|
5
|
+
{% code lineNumbers="true" %}
|
6
|
+
```ruby
|
7
|
+
require "monday_ruby"
|
8
|
+
|
9
|
+
client = Monday::Client.new(token: <AUTH_TOKEN>)
|
10
|
+
|
11
|
+
select = [
|
12
|
+
"id",
|
13
|
+
{
|
14
|
+
columns: "id"
|
15
|
+
}
|
16
|
+
]
|
17
|
+
|
18
|
+
response = client.boards(select: select)
|
19
|
+
# => <Monday::Response ...>
|
20
|
+
|
21
|
+
puts response.body
|
22
|
+
```
|
23
|
+
{% endcode %}
|
24
|
+
|
25
|
+
The response body from the above query would be as follows:
|
26
|
+
|
27
|
+
{% code lineNumbers="true" %}
|
28
|
+
```json
|
29
|
+
{
|
30
|
+
"data": {
|
31
|
+
"boards": [
|
32
|
+
{
|
33
|
+
"id": "123",
|
34
|
+
"columns": [
|
35
|
+
{
|
36
|
+
"id": "name"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"id": "subitems"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"id": "work_status"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"id": "keywords"
|
46
|
+
}
|
47
|
+
]
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"id": "456",
|
51
|
+
"columns": [
|
52
|
+
{
|
53
|
+
"id": "name"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"id": "person"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"id": "status"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"id": "date0"
|
63
|
+
}
|
64
|
+
]
|
65
|
+
},
|
66
|
+
]
|
67
|
+
},
|
68
|
+
"account_id": 123
|
69
|
+
}
|
70
|
+
```
|
71
|
+
{% endcode %}
|
72
|
+
|
73
|
+
### Advanced select query
|
74
|
+
|
75
|
+
The following is the minimum needed to fetch:
|
76
|
+
|
77
|
+
1. All the boards' IDs, names and count of items on each board.
|
78
|
+
2. The ID, title and type for the columns on each board.
|
79
|
+
3. The ID, name and the value of the items on each board.
|
80
|
+
|
81
|
+
{% code lineNumbers="true" %}
|
82
|
+
```ruby
|
83
|
+
require "monday_ruby"
|
84
|
+
|
85
|
+
client = Monday::Client.new(token: <AUTH_TOKEN>)
|
86
|
+
|
87
|
+
select = [
|
88
|
+
"id",
|
89
|
+
"name",
|
90
|
+
"items_count",
|
91
|
+
{
|
92
|
+
columns: %w[id title type],
|
93
|
+
items: [
|
94
|
+
"id",
|
95
|
+
"name",
|
96
|
+
{
|
97
|
+
column_values: "value"
|
98
|
+
}
|
99
|
+
]
|
100
|
+
}
|
101
|
+
]
|
102
|
+
|
103
|
+
response = client.boards(select: select)
|
104
|
+
# => <Monday::Response ...>
|
105
|
+
|
106
|
+
puts response.body
|
107
|
+
```
|
108
|
+
{% endcode %}
|
109
|
+
|
110
|
+
The response body from the above query would be as follows:
|
111
|
+
|
112
|
+
{% code lineNumbers="true" %}
|
113
|
+
```json
|
114
|
+
{
|
115
|
+
"data": {
|
116
|
+
"boards": [
|
117
|
+
{
|
118
|
+
"id": "123",
|
119
|
+
"name": "New test board",
|
120
|
+
"items_count": 2,
|
121
|
+
"columns": [
|
122
|
+
{
|
123
|
+
"id": "name",
|
124
|
+
"title": "Name",
|
125
|
+
"type": "name"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"id": "subitems",
|
129
|
+
"title": "Subitems",
|
130
|
+
"type": "subtasks"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"id": "work_status",
|
134
|
+
"title": "Status",
|
135
|
+
"type": "color"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
"id": "keywords",
|
139
|
+
"title": "Keywords",
|
140
|
+
"type": "dropdown"
|
141
|
+
}
|
142
|
+
],
|
143
|
+
"items": [
|
144
|
+
{
|
145
|
+
"id": "4708726090",
|
146
|
+
"name": "Task 1",
|
147
|
+
"column_values": [
|
148
|
+
{
|
149
|
+
"value": null
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"value": "{\"index\":0,\"changed_at\":\"2023-06-27T16:21:22.192Z\"}"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"value": "{\"ids\":[1]}"
|
156
|
+
}
|
157
|
+
]
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"id": "4713421325",
|
161
|
+
"name": "New item",
|
162
|
+
"column_values": [
|
163
|
+
{
|
164
|
+
"value": null
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"value": null
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"value": null
|
171
|
+
}
|
172
|
+
]
|
173
|
+
}
|
174
|
+
]
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"id": "456",
|
178
|
+
"name": "Your first board",
|
179
|
+
"items_count": 3,
|
180
|
+
"columns": [
|
181
|
+
{
|
182
|
+
"id": "name",
|
183
|
+
"title": "Name",
|
184
|
+
"type": "name"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"id": "subitems",
|
188
|
+
"title": "Subitems",
|
189
|
+
"type": "subtasks"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"id": "person",
|
193
|
+
"title": "Person",
|
194
|
+
"type": "multiple-person"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"id": "status",
|
198
|
+
"title": "Status",
|
199
|
+
"type": "color"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"id": "date4",
|
203
|
+
"title": "Date",
|
204
|
+
"type": "date"
|
205
|
+
}
|
206
|
+
],
|
207
|
+
"items": [
|
208
|
+
{
|
209
|
+
"id": "4691485763",
|
210
|
+
"name": "Item 1",
|
211
|
+
"column_values": [
|
212
|
+
{
|
213
|
+
"value": null
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"value": "{\"changed_at\":\"2022-10-26T12:39:58.664Z\",\"personsAndTeams\":[{\"id\":44865791,\"kind\":\"person\"}]}"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"value": "{\"index\":0,\"post_id\":null,\"changed_at\":\"2019-03-01T17:24:57.321Z\"}"
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"value": "{\"date\":\"2023-06-21\",\"icon\":null,\"changed_at\":\"2022-12-18T14:03:06.455Z\"}"
|
223
|
+
}
|
224
|
+
]
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"id": "4691485774",
|
228
|
+
"name": "Item 2",
|
229
|
+
"column_values": [
|
230
|
+
{
|
231
|
+
"value": null
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"value": null
|
235
|
+
},
|
236
|
+
{
|
237
|
+
"value": "{\"index\":1,\"post_id\":null,\"changed_at\":\"2019-03-01T17:28:23.178Z\"}"
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"value": "{\"date\":\"2023-06-23\",\"icon\":null,\"changed_at\":\"2022-12-25T12:31:18.096Z\"}"
|
241
|
+
}
|
242
|
+
]
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"id": "4691485784",
|
246
|
+
"name": "Item 3",
|
247
|
+
"column_values": [
|
248
|
+
{
|
249
|
+
"value": null
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"value": null
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"value": "{\"index\":2,\"post_id\":null,\"changed_at\":\"2022-12-11T14:33:50.083Z\"}"
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"value": "{\"date\":\"2023-06-25\",\"changed_at\":\"2022-12-25T12:31:20.220Z\"}"
|
259
|
+
}
|
260
|
+
]
|
261
|
+
}
|
262
|
+
]
|
263
|
+
}
|
264
|
+
]
|
265
|
+
},
|
266
|
+
"account_id": 123
|
267
|
+
}
|
268
|
+
```
|
269
|
+
{% endcode %}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Resources
|
2
|
+
|
3
|
+
Once you have the client set up, you can call the API resources using the client.
|
4
|
+
|
5
|
+
{% content-ref url="account/" %}
|
6
|
+
[account](account/)
|
7
|
+
{% endcontent-ref %}
|
8
|
+
|
9
|
+
{% content-ref url="activity-log/" %}
|
10
|
+
[activity-log](activity-log/)
|
11
|
+
{% endcontent-ref %}
|
12
|
+
|
13
|
+
{% content-ref url="board-view/" %}
|
14
|
+
[board-view](board-view/)
|
15
|
+
{% endcontent-ref %}
|
16
|
+
|
17
|
+
{% content-ref url="board/" %}
|
18
|
+
[board](board/)
|
19
|
+
{% endcontent-ref %}
|
20
|
+
|
21
|
+
{% content-ref url="column/" %}
|
22
|
+
[column](column/)
|
23
|
+
{% endcontent-ref %}
|
24
|
+
|
25
|
+
{% content-ref url="item/" %}
|
26
|
+
[item](item/)
|
27
|
+
{% endcontent-ref %}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Account
|
2
|
+
|
3
|
+
The account API is used to access the account data. It includes the following methods:
|
4
|
+
|
5
|
+
[accounts.md](accounts.md "mention")
|
6
|
+
|
7
|
+
{% hint style="info" %}
|
8
|
+
Visit monday.com's API documentation to know more about the [account API](https://developer.monday.com/api-reference/docs/account).
|
9
|
+
{% endhint %}
|