Skip to content

Commit 4d36831

Browse files
committed
new version
1 parent 19a8fd3 commit 4d36831

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [4.4.0] - 2022-01-08
9+
### Added
10+
- New settings option `twitter:token` to use Twitter API to get the data [#364] [#468].
11+
12+
### Fixed
13+
- Headers not sent properly by curl [#466], [#467].
14+
815
## [4.3.5] - 2021-10-10
916
### Fixed
1017
- Updated oEmbed endpoints
@@ -98,7 +105,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
98105
- `Document::removeCss()` function to remove elements using css selectors instead xpath (it requires `symfony/css-selector`)
99106
- Ability to configure OEmbed parameters from the outside using the `oembed:query_parameters` setting [#346]
100107

101-
## 4.0.0 - 2020-03-13
108+
## [4.0.0] - 2020-03-13
102109
Full library refactoring.
103110

104111
### Added
@@ -129,6 +136,7 @@ Full library refactoring.
129136
[#355]: https://github.com/oscarotero/Embed/issues/355
130137
[#356]: https://github.com/oscarotero/Embed/issues/356
131138
[#357]: https://github.com/oscarotero/Embed/issues/357
139+
[#364]: https://github.com/oscarotero/Embed/issues/364
132140
[#366]: https://github.com/oscarotero/Embed/issues/366
133141
[#375]: https://github.com/oscarotero/Embed/issues/375
134142
[#380]: https://github.com/oscarotero/Embed/issues/380
@@ -155,7 +163,11 @@ Full library refactoring.
155163
[#452]: https://github.com/oscarotero/Embed/issues/452
156164
[#456]: https://github.com/oscarotero/Embed/issues/456
157165
[#459]: https://github.com/oscarotero/Embed/issues/459
166+
[#466]: https://github.com/oscarotero/Embed/issues/466
167+
[#467]: https://github.com/oscarotero/Embed/issues/467
168+
[#468]: https://github.com/oscarotero/Embed/issues/468
158169

170+
[4.4.0]: https://github.com/oscarotero/Embed/compare/v4.3.5...v4.4.0
159171
[4.3.5]: https://github.com/oscarotero/Embed/compare/v4.3.4...v4.3.5
160172
[4.3.4]: https://github.com/oscarotero/Embed/compare/v4.3.3...v4.3.4
161173
[4.3.3]: https://github.com/oscarotero/Embed/compare/v4.3.2...v4.3.3
@@ -172,3 +184,4 @@ Full library refactoring.
172184
[4.2.0]: https://github.com/oscarotero/Embed/compare/v4.1.1...v4.2.0
173185
[4.1.1]: https://github.com/oscarotero/Embed/compare/v4.1.0...v4.1.1
174186
[4.1.0]: https://github.com/oscarotero/Embed/compare/v4.0.0...v4.1.0
187+
[4.0.0]: https://github.com/oscarotero/Embed/releases/tag/v4.0.0

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ $embed->setSettings([
332332
'twitch:parent' => 'example.com', //Required to embed twitch videos as iframe
333333
'facebook:token' => '1234|5678', //Required to embed content from Facebook
334334
'instagram:token' => '1234|5678', //Required to embed content from Instagram
335+
'twitter:token' => 'asdf', //Improve the data from twitter
335336
]);
336337
$info = $embed->get($url);
337338
```

tests/MultipleRequestsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function testParallel()
1818
);
1919

2020
$this->assertCount(3, $infos);
21-
$this->assertEquals('https://oscarotero.com/en/', (string) $infos[0]->url);
21+
$this->assertEquals('https://oscarotero.com/', (string) $infos[0]->url);
2222
$this->assertEquals('Óscar Otero - Web designer and developer', $infos[0]->title);
2323

2424
$this->assertEquals('https://github.com/oscarotero', $infos[1]->url);

0 commit comments

Comments
 (0)