cloud-waba-ruby-client 0.0.5 → 0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 776fe9551683b144357021a087daf8be4600e8bed893552017ded5d0ddbf9306
4
- data.tar.gz: 9f6118a9123f470b303a255ba782a7db3349abfcc649c4d391f04c4e4aeef473
3
+ metadata.gz: 94543fc2d4cbaf38614310550b889068b360c516794b11c74bbdeb7ca9234cad
4
+ data.tar.gz: a2f7a3d3a8a6607914e22048d5264c87964f59e025e2a7b3bfd402155c766299
5
5
  SHA512:
6
- metadata.gz: 849442cf4206504c78a3552d75eb87c27c3a9e0b68ac67e28ff4644706cc3d3048d9a634aadbc7dc4abf2fa0566848165e800ce27275adb70ab359f706ecd395
7
- data.tar.gz: da26c3bc79ef14949ae2aba44816685a9e10a02bbb49f52892dc72ee9608a117131ccffdf55ce0076dc4f9eae1637a3319c22e3664e68101258650626f2b6d84
6
+ metadata.gz: fc34e254370d73934a2aead1328836e671549bf6dcb04f7d4a2c66ec02da2a0f4b5e696a4b1ef28947e75d8f02bb8da12ecb622568360773fe86c504a3e25ee3
7
+ data.tar.gz: 2868c940d24dc17277d4ea84b0363af263364aad0b8430df0607c848ec41d66ce10cabd9cdaf02c394b644d6b488675f228d995d228a2ffda6086e739fa85e6c
data/README.md CHANGED
@@ -7,7 +7,7 @@ Ruby wrapper for [Cloud WhatsApp Business API](https://developers.facebook.com/d
7
7
  Add following line to your Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'cloud-waba-ruby-client', '~> 0.0.5'
10
+ gem 'cloud-waba-ruby-client', '~> 0.0.6'
11
11
  ```
12
12
 
13
13
  then run
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cloud-waba-ruby-client"
3
- s.version = "0.0.5"
3
+ s.version = "0.0.6"
4
4
  s.summary = "Cloud Waba Client for Ruby."
5
5
  s.description = "A simple API wrapper for Cloud Whatsapp Business API"
6
6
  s.authors = ["Ahmed Bassell"]
@@ -247,7 +247,8 @@ module API
247
247
  end
248
248
  def fetch_media_url(media_id:)
249
249
  url = "#{@config.base_url}/#{@config.api_version}/#{media_id}"
250
- response = with_error_handling { http_client.get(url) }
250
+ client = ::CloudWaba::HttpClient.new(base_url: url, auth_token: @config.access_token)
251
+ response = with_error_handling { client.get }
251
252
  parsed_response = JSON.parse(response.body.to_s)
252
253
  ::CloudWaba::Models::Media::Response.parse(hash: parsed_response)
253
254
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud-waba-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmed Bassell