fathom_api 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +3 -1
- data/lib/fathom/resources/aggregations.rb +2 -2
- data/lib/fathom/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd1fb1ed59645e003831fb90b389245f3eae70c42aab53a3e810880396960073
|
4
|
+
data.tar.gz: 9dca1f450bdadfb8fbb913210a3a6cb2409cfd3355f92c0289c3bb3ec081cf4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3deac641b6283efb87b284c1f4c80f360e5b2e3ab0eac061cf9599de059ba104f4dfb8c246895fd2b1242281411e774d9e76146e8b09560f2399b6b2804f6797
|
7
|
+
data.tar.gz: 12b9b2bba5a6e9e72766503aa0eeec5fb6698623df763a9b148883382c11659c4334299026970133abb5301ac1b7c23e9e6ef806d65ad0233c830262ad585109
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -113,9 +113,11 @@ client.current_visitors(site_id: site_id, {}) # Can add detailed: true for a mor
|
|
113
113
|
### Aggregation
|
114
114
|
|
115
115
|
```ruby
|
116
|
-
client.aggregations.list(entity_id: entity_id,
|
116
|
+
client.aggregations.list(entity_id: entity_id, entity: entity, aggregates: aggregates, **params)
|
117
117
|
```
|
118
118
|
|
119
|
+
You can find all the available parameters in the [official Fathom docs](https://usefathom.com/api#introduction)
|
120
|
+
|
119
121
|
## 🙏 Contributing
|
120
122
|
|
121
123
|
This project uses Standard for formatting Ruby code. Please make sure to run standardrb before submitting pull requests. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/afomera/fathom_api/blob/main/CODE_OF_CONDUCT.md).
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Fathom
|
2
2
|
class AggregationsResource < Resource
|
3
3
|
# TODO: Ensure this works properly
|
4
|
-
def list(entity_id:,
|
4
|
+
def list(entity_id:, entity:, aggregates:, **params)
|
5
5
|
get_request("aggregations", params: params.merge(entity_id: entity_id,
|
6
|
-
|
6
|
+
entity: entity, aggregates: aggregates))
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
data/lib/fathom/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fathom_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrea Fomera
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|