File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222- Integrate REST API to get contacts
2323 - get profile ` client.contacts `
24- - get contacts data with next link ` client.contacts({next_link: 'xxx'}) `
24+ - get contacts data with next link ` client.contacts({next_link: 'xxx'}) `
25+
26+ ## [ 0.1.4] - (2022-10-26)
27+
28+ - Generate URLs for token and able to refresh token
29+ - get authorize URL ` client.authorize_url `
30+ - get token URL ` client.token_url `
31+ - be able to refresh token ` client.refresh_token! `
Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- ruby-office365 (0.1.3 )
4+ ruby-office365 (0.1.4 )
55 faraday
66 faraday_middleware
77
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ irb(main):018:0> response[:results][0].as_json
135135** Refresh User Token**
136136
137137``` ruby
138- irb(main):005 :0 > client.refresh_token
138+ irb(main):005 :0 > client.refresh_token!
139139```
140140
141141## Copyright
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def token_url
2222 [ LOGIN_HOST , "/#{ tenant_id } /oauth2/v2.0/token" ] . join
2323 end
2424
25- def token_refresh
25+ def refresh_token!
2626 post ( token_url , {
2727 refresh_token : refresh_token ,
2828 client_id : client_id ,
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33module Office365
4- VERSION = "0.1.3 "
4+ VERSION = "0.1.4 "
55end
Original file line number Diff line number Diff line change 7878 end
7979
8080 xit "be able to refresh token by refresh_token" do
81- expect ( client . token_refresh ) . to eq ( { } )
81+ expect ( client . refresh_token! ) . to eq ( { } )
8282 end
8383end
Original file line number Diff line number Diff line change 22
33RSpec . describe Office365 do
44 it "has a version number" do
5- expect ( Office365 ::VERSION ) . to eq ( "0.1.3 " )
5+ expect ( Office365 ::VERSION ) . to eq ( "0.1.4 " )
66 end
77end
You can’t perform that action at this time.
0 commit comments