aylien_text_api 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +28 -0
- data/LICENSE +13 -0
- data/README.md +67 -0
- data/Rakefile +8 -0
- data/aylien_text_api.gemspec +24 -0
- data/config/app_config.yml.example +7 -0
- data/lib/aylien_text_api.rb +23 -0
- data/lib/aylien_text_api/client.rb +246 -0
- data/lib/aylien_text_api/configuration.rb +57 -0
- data/lib/aylien_text_api/connection.rb +71 -0
- data/lib/aylien_text_api/error.rb +110 -0
- data/lib/aylien_text_api/version.rb +17 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +48 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +98 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +48 -0
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +98 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +44 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +63 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +44 -0
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +63 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +43 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +302 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +43 -0
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +302 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +185 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +185 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +48 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +58 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +48 -0
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +58 -0
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +41 -0
- data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +41 -0
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +60 -0
- data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +60 -0
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +53 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +53 -0
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +36 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +41 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +78 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +40 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +65 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +78 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +41 -0
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +65 -0
- data/spec/lib/aylien_text_api/classify.rb +86 -0
- data/spec/lib/aylien_text_api/client_spec.rb +23 -0
- data/spec/lib/aylien_text_api/concepts.rb +81 -0
- data/spec/lib/aylien_text_api/entities.rb +81 -0
- data/spec/lib/aylien_text_api/extract.rb +81 -0
- data/spec/lib/aylien_text_api/hashtags.rb +87 -0
- data/spec/lib/aylien_text_api/language.rb +79 -0
- data/spec/lib/aylien_text_api/related.rb +80 -0
- data/spec/lib/aylien_text_api/sentiment.rb +91 -0
- data/spec/lib/aylien_text_api/summarize.rb +95 -0
- data/spec/spec_helper.rb +16 -0
- metadata +193 -0
@@ -0,0 +1,185 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/extract
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: url=http%3A%2F%2Fwww.bbc.com%2Fsport%2F0%2Ffootball%2F30180206
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
App-Id:
|
17
|
+
- <PASSWORD>
|
18
|
+
App-Key:
|
19
|
+
- <PASSWORD>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty/1.5.12.1
|
27
|
+
Date:
|
28
|
+
- Tue, 02 Dec 2014 18:16:23 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
Content-Length:
|
32
|
+
- '11061'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! "{\n \"title\": \"Qatar, Abu Dhabi and Dubai: New centre of the sporting
|
38
|
+
world?\",\n \"article\": \"Qatar, Abu Dhabi and Dubai: New centre of the
|
39
|
+
sporting world?\\n\\nWhere once, sport looked west for investment and inspiration,
|
40
|
+
now it looks east.\\n\\nThe oil-rich billionaires of the Gulf have planted
|
41
|
+
a flag at the heart of the sporting landscape in recent years. They have invested
|
42
|
+
their inconceivable wealth across an array of sports into all corners of the
|
43
|
+
world and now they are using their influence to bring sport to the region,
|
44
|
+
as a global statement of their ambition.\\n\\nThree Gulf states are at the
|
45
|
+
heart of this extraordinary revolution: Qatar, Abu Dhabi and Dubai. In Dubai
|
46
|
+
alone, you will find one billionaire in every 200,000 people.\\n\\nIn Abu
|
47
|
+
Dhabi, a rival state in the United Arab Emirates, the figures are just as
|
48
|
+
extraordinary. It is in the process of building the jaw-dropping having paid
|
49
|
+
the world-famous Paris museum more than \\u00a3400m just to use the name.
|
50
|
+
While in Qatar, more than 14% of households have at least \\u00a31m of private
|
51
|
+
wealth in the bank.\\n\\nAnd it is that wealth, that influence, which has
|
52
|
+
lured sport to the Gulf.\\n\\nTake last week, for instance. On Monday, the
|
53
|
+
row over Qatar's right to stage the 2022 World Cup rumbled on. On Tuesday,
|
54
|
+
Doha in Qatar won the right to host the 2019 World Athletics Championships.
|
55
|
+
From Thursday to Sunday, Rory McIlroy duelled with Henrik Stenson at the European
|
56
|
+
Tour's season-ending showpiece in Dubai.\\n\\nLewis Hamilton, Nico Rosberg
|
57
|
+
and the rest of the Formula 1 circus were in Abu Dhabi from Thursday before
|
58
|
+
contesting the final Grand Prix of the season on Sunday at the ostentatious
|
59
|
+
Yas Marina Circuit, built at a cost of about \\u00a3900m ($1.5bn).\\n\\nThe
|
60
|
+
region is fast becoming a sporting hub like no other. Qatar, for example,
|
61
|
+
will host world championships in boxing, swimming, squash, handball and para-athletics
|
62
|
+
in the next 12 months as well as staging almost 40 other sporting events.\\n\\nThe
|
63
|
+
question is why? Dr Christopher Davidson, reader in Middle East studies at
|
64
|
+
Durham University, says the approach is all about increasing global exposure.\\n\\n\\\"One
|
65
|
+
of the key reasons behind the approach is the desire to accumulate 'soft power'
|
66
|
+
in states which are either major trade partners or, more importantly, potential
|
67
|
+
military protectors, notably the UK, France and the United States,\\\" he
|
68
|
+
told the BBC.\\n\\n\\\"If sport is a way to allow these Gulf states to grab
|
69
|
+
favourable headlines and become better known, then it can help them to appear
|
70
|
+
more open, more friendly.\\\"\\n\\nIf we look at each of the three states
|
71
|
+
individually, the picture is easier to understand.\\n\\nDubai has the longest
|
72
|
+
association with sport thanks to its supreme ruler, Sheikh Mohammed bin Rashid
|
73
|
+
Al Maktoum. The 65-year-old is best known as owner of Godolphin, the thoroughbred
|
74
|
+
horse racing group, which he founded in 1994.\\n\\nIn 1996, the Dubai World
|
75
|
+
Cup was inaugurated as the world's richest horserace and takes place at the
|
76
|
+
world's most opulent course, the Meydan, built at a cost of \\u00a3800m ($1.25bn).\\n\\nSheikh
|
77
|
+
Mohammed's private wealth is estimated at \\u00a39bn, but his reach extends
|
78
|
+
far beyond that. He founded Emirates Airways, which last year\\n\\nThey have
|
79
|
+
shirt deals with Italy's AC Milan, French club Paris St-Germain and Arsenal,
|
80
|
+
whose north London stadium will be named after the airline until at least
|
81
|
+
2028. But they also have deals with the US Open tennis, the International
|
82
|
+
Cricket Council, the Ryder Cup and the USA Rugby Union team.\\n\\nKevin Hasler,
|
83
|
+
general manager of PR firm BPG, Cohn & Wolfe, said: \\\"When you watch a Premier
|
84
|
+
League game and the commentator says 'here at the Etihad' or 'their third
|
85
|
+
successive win at the Emirates', naming stadiums and shirt sponsorship has
|
86
|
+
become enormously effective.\\n\\n\\\"Brands are being seen around the world
|
87
|
+
in newspapers and on TV, day in, day out. The core of these strategies is
|
88
|
+
about investing to put these states on the map, getting them talked about
|
89
|
+
and discussed.\\\"\\n\\nElsewhere, Dubai has hosted an ATP Tennis event at
|
90
|
+
the Aviation Club with Roger Federer, who has a home in the region, winning
|
91
|
+
four times in five years from 2003 and a sixth time this year.\\n\\nThere
|
92
|
+
was, of course, that ill-fated attempt to buy Liverpool in 2007 and 2008.\\n\\nAbu
|
93
|
+
Dhabi has, however, gone one step further. If Dubai has Emirates Airways,
|
94
|
+
Abu Dhabi has Etihad - a name synonymous with the Abu Dhabi-owned Manchester
|
95
|
+
City.\\n\\nAbu Dhabi is ruled by Sheikh Khalifa bin Zayed Al Nahyan. His half
|
96
|
+
brother, Mansour bin Zayed bin Sultan bin Zayed bin Khalifa Al Nahyan (better
|
97
|
+
known as Sheikh Mansour) is the man who bought Manchester City in 2008.\\n\\nThe
|
98
|
+
family have ruled the emirate since the 18th century and pride themselves
|
99
|
+
on 'respect for heritage, culture, tradition.'\\n\\nThe ruling family are
|
100
|
+
complex with Sheikh Mansour one of 19 sons born to Abu Dhabi's long-term ruler
|
101
|
+
Sheikh Zayed bin Sultan Al Nahyan. His mother, one of six wives, had six sons,
|
102
|
+
making her part of this vast family the most influential.\\n\\nIn terms of
|
103
|
+
wealth? It is almost limitless. It is estimated that the family have as much
|
104
|
+
as $1tn in overseas assets alone. Their investment in City represents loose
|
105
|
+
change, in relative terms, even if they have pumped in excess of \\u00a31bn
|
106
|
+
into the club since 2008.\\n\\nTheir football interests extend elsewhere,
|
107
|
+
however. A company owned by Sheikh Mansour has recently agreed to to the tune
|
108
|
+
of \\u00a3312m.\\n\\nThe work will include the creation of a hotel and shopping
|
109
|
+
centre. But perhaps it is their move to expand into the United States that
|
110
|
+
is more interesting.\\n\\nIn 2013, Major League Soccer and the iconic New
|
111
|
+
York Yankees announced a pioneering deal to create an MLS franchise in New
|
112
|
+
York in time for the start of the 2015-16 season -\\n\\nIt is a development
|
113
|
+
that could give Abu Dhabi a footing and profile in the United States that
|
114
|
+
was previously unimaginable. A few months later, it was announced Sheikh Mansour
|
115
|
+
and Manchester City added Australian side Melbourne Heart.\\n\\n\\\"You could
|
116
|
+
look at things like the Abu Dhabi Grand Prix, the Abu Dhabi golf championships
|
117
|
+
and the investment in Manchester City as some of their most prominent global
|
118
|
+
marketing assets,\\\" said Ben Faber, senior director at Fast Track Middle
|
119
|
+
East, the company tasked with delivering City's fan loyalty programmes.\\n\\n\\\"The
|
120
|
+
Manchester City investment has given the emirate global awareness through
|
121
|
+
the fan base and they have been able to tap into associated Abu Dhabi businesses
|
122
|
+
such as Etihad to leverage off the back of that ownership as sponsors of the
|
123
|
+
club.\\\"\\n\\nAnd what of Qatar? Financial experts describe it as the world's
|
124
|
+
most ambitious deal hunter. A brief scan across the London skyline would suggest
|
125
|
+
they have a point.\\n\\nThe Shard, is Qatari owned, as are swathes of the
|
126
|
+
Canary Wharf financial district.\\n\\nDuring the financial crisis, the Qatar
|
127
|
+
Investment Authority (QIA) emerged as a white-knight investor to become Barclays'
|
128
|
+
biggest shareholder. A little further east, many of the buildings in the Olympic
|
129
|
+
Village are now owned by QIA.\\n\\nThe world's most expensive block of flats,
|
130
|
+
is Qatar owned as is Harrods, the famous department store. It owns a fifth
|
131
|
+
of the London stock exchange, 20% of Camden market. The reach is extraordinary.\\n\\nQatar
|
132
|
+
is ruled by a 34-year-old Emir Sheikh Tamim bin Hamad Al Thani, the world's
|
133
|
+
youngest reigning monarch. Born in Doha, the capital of Qatar, he was educated
|
134
|
+
at Harrow School in London, before graduating from the Royal Military Academy
|
135
|
+
Sandhurst. He is now head of the QIA, which is estimated to have assets of
|
136
|
+
\\u00a3300bn.\\n\\nQuestions remain about the bidding process for the 2022
|
137
|
+
World Cup and world governing body Fifa has yet to fully address the plight
|
138
|
+
of the 1.4m migrant workers in the country, many of whom are there against
|
139
|
+
their will.\\n\\nThe project began just after the turn of the century, when
|
140
|
+
some of Europe's elder footballing statesmen were lured to Qatar for one last
|
141
|
+
pay day. Pep Guardiola was among them, playing for Al Ahli between 2003 and
|
142
|
+
2005.\\n\\nThe Bayern Munich manager subsequently became an ambassador for
|
143
|
+
Qatar's successful World Cup bid. But there was more to come. Some 10 days
|
144
|
+
after Fifa announced the country would host the World Cup in 2022, came the
|
145
|
+
news that Qatar would appear on the Barcelona shirt, in a deal that would
|
146
|
+
become the biggest in football sponsorship history.\\n\\nThe deal was struck
|
147
|
+
with the Qatar Foundation, the country's charitable arm. Two years later,
|
148
|
+
Qatar Airways' paid \\u00a376m (\\u20ac96m) to extend the country's sponsorship
|
149
|
+
to all areas of the club.\\n\\nThen in 2011, QIA bought Paris St-Germain.
|
150
|
+
It was a bold move to harness the potential of the biggest one-club city in
|
151
|
+
Europe. To aid their cause PSG signed a controversial \\u20ac200m-a-year sponsorship
|
152
|
+
deal with the Qatar Tourism Authority. Paris is not the only city in Europe
|
153
|
+
touched by the wealth of Qatar. A year earlier, Sheikh Abdullah Al-Thani,
|
154
|
+
of the country's Royal Family, bought the Spanish club Malaga.\\n\\nQatar's
|
155
|
+
wealth is built on having the world's third-largest natural gas reserves.
|
156
|
+
But they will not last forever. \\\"By bringing sport to the Gulf, these states
|
157
|
+
are not only helping to boost tourism, boosting GDP as a result, but they
|
158
|
+
are also reducing their reliance on the oil, gas or industry that may not
|
159
|
+
last forever,\\\" said Dr Davidson.\\n\\nAnd yet while the region brings opportunity
|
160
|
+
and wealth it also brings with it controversy. The climate does not suit all
|
161
|
+
sport at all times. The row about when to stage the 2022 World Cup is well
|
162
|
+
publicised. Qatar is also moving the 2019 World Athletics Championships to
|
163
|
+
the autumn because of the unbearable summer heat.\\n\\nAnd that is to say
|
164
|
+
nothing of conditions for migrant workers, who often have to surrender the
|
165
|
+
passports and whose right to come and go is governed by their employer.\\n\\nIn
|
166
|
+
September two British researchers documenting the problems faced by migrant
|
167
|
+
workers were held for 10 days without charge. In Dubai, the former Leeds United
|
168
|
+
managing director David Haigh has been in prison for six months without charge.\\n\\nAnd
|
169
|
+
yet these issues are being overlooked. Money talks. As does the opportunity
|
170
|
+
to take sport to new parts of the world.\\n\\nWill these states continue to
|
171
|
+
bankroll sport, continue to build their sport portfolios?\\n\\nNo one can
|
172
|
+
be certain of the answer. Doha has twice bid for the Olympic Games but they
|
173
|
+
are unlikely to be put off bidding again. Who would bet against them?\\n\\nThere
|
174
|
+
are, however, those who believe that the region's investment focus is shifting
|
175
|
+
towards cultural and artistic assets. In 2017, construction is due to be complete
|
176
|
+
on a based on the original in New York.\\n\\nBut having secured such a stronghold
|
177
|
+
in sport, their existing investments will remain a key part of each respective
|
178
|
+
state's marketing strategies. The wealth is limitless, the ambition to bring
|
179
|
+
the best athletes in the world to the region remains.\\n\\nIt is a land grab
|
180
|
+
unmatched anywhere in the world. In sporting terms, east has met west.\",\n
|
181
|
+
\ \"image\": \"\",\n \"author\": \"Ben Smith\",\n \"videos\": [],\n \"feeds\":
|
182
|
+
[]\n}"
|
183
|
+
http_version:
|
184
|
+
recorded_at: Tue, 02 Dec 2014 18:15:20 GMT
|
185
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/extract
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: text=The+oil-rich+billionaires+of+the+Gulf+have+planted%0A++++++++++++++++a+flag+at+the+heart+of+the+sporting+landscape+in+recent+years.
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
App-Id:
|
17
|
+
- <PASSWORD>
|
18
|
+
App-Key:
|
19
|
+
- <PASSWORD>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 400
|
23
|
+
message: Bad Request
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty/1.5.12.1
|
27
|
+
Date:
|
28
|
+
- Tue, 02 Dec 2014 18:16:20 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
Content-Length:
|
32
|
+
- '70'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! '{"error" : "requirement failed: you must either provide url or html."}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Tue, 02 Dec 2014 18:15:17 GMT
|
40
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,185 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/extract
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: url=http%3A%2F%2Fwww.bbc.com%2Fsport%2F0%2Ffootball%2F30180206
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
App-Id:
|
17
|
+
- <PASSWORD>
|
18
|
+
App-Key:
|
19
|
+
- <PASSWORD>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty/1.5.12.1
|
27
|
+
Date:
|
28
|
+
- Tue, 02 Dec 2014 18:16:19 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
Content-Length:
|
32
|
+
- '11061'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! "{\n \"title\": \"Qatar, Abu Dhabi and Dubai: New centre of the sporting
|
38
|
+
world?\",\n \"article\": \"Qatar, Abu Dhabi and Dubai: New centre of the
|
39
|
+
sporting world?\\n\\nWhere once, sport looked west for investment and inspiration,
|
40
|
+
now it looks east.\\n\\nThe oil-rich billionaires of the Gulf have planted
|
41
|
+
a flag at the heart of the sporting landscape in recent years. They have invested
|
42
|
+
their inconceivable wealth across an array of sports into all corners of the
|
43
|
+
world and now they are using their influence to bring sport to the region,
|
44
|
+
as a global statement of their ambition.\\n\\nThree Gulf states are at the
|
45
|
+
heart of this extraordinary revolution: Qatar, Abu Dhabi and Dubai. In Dubai
|
46
|
+
alone, you will find one billionaire in every 200,000 people.\\n\\nIn Abu
|
47
|
+
Dhabi, a rival state in the United Arab Emirates, the figures are just as
|
48
|
+
extraordinary. It is in the process of building the jaw-dropping having paid
|
49
|
+
the world-famous Paris museum more than \\u00a3400m just to use the name.
|
50
|
+
While in Qatar, more than 14% of households have at least \\u00a31m of private
|
51
|
+
wealth in the bank.\\n\\nAnd it is that wealth, that influence, which has
|
52
|
+
lured sport to the Gulf.\\n\\nTake last week, for instance. On Monday, the
|
53
|
+
row over Qatar's right to stage the 2022 World Cup rumbled on. On Tuesday,
|
54
|
+
Doha in Qatar won the right to host the 2019 World Athletics Championships.
|
55
|
+
From Thursday to Sunday, Rory McIlroy duelled with Henrik Stenson at the European
|
56
|
+
Tour's season-ending showpiece in Dubai.\\n\\nLewis Hamilton, Nico Rosberg
|
57
|
+
and the rest of the Formula 1 circus were in Abu Dhabi from Thursday before
|
58
|
+
contesting the final Grand Prix of the season on Sunday at the ostentatious
|
59
|
+
Yas Marina Circuit, built at a cost of about \\u00a3900m ($1.5bn).\\n\\nThe
|
60
|
+
region is fast becoming a sporting hub like no other. Qatar, for example,
|
61
|
+
will host world championships in boxing, swimming, squash, handball and para-athletics
|
62
|
+
in the next 12 months as well as staging almost 40 other sporting events.\\n\\nThe
|
63
|
+
question is why? Dr Christopher Davidson, reader in Middle East studies at
|
64
|
+
Durham University, says the approach is all about increasing global exposure.\\n\\n\\\"One
|
65
|
+
of the key reasons behind the approach is the desire to accumulate 'soft power'
|
66
|
+
in states which are either major trade partners or, more importantly, potential
|
67
|
+
military protectors, notably the UK, France and the United States,\\\" he
|
68
|
+
told the BBC.\\n\\n\\\"If sport is a way to allow these Gulf states to grab
|
69
|
+
favourable headlines and become better known, then it can help them to appear
|
70
|
+
more open, more friendly.\\\"\\n\\nIf we look at each of the three states
|
71
|
+
individually, the picture is easier to understand.\\n\\nDubai has the longest
|
72
|
+
association with sport thanks to its supreme ruler, Sheikh Mohammed bin Rashid
|
73
|
+
Al Maktoum. The 65-year-old is best known as owner of Godolphin, the thoroughbred
|
74
|
+
horse racing group, which he founded in 1994.\\n\\nIn 1996, the Dubai World
|
75
|
+
Cup was inaugurated as the world's richest horserace and takes place at the
|
76
|
+
world's most opulent course, the Meydan, built at a cost of \\u00a3800m ($1.25bn).\\n\\nSheikh
|
77
|
+
Mohammed's private wealth is estimated at \\u00a39bn, but his reach extends
|
78
|
+
far beyond that. He founded Emirates Airways, which last year\\n\\nThey have
|
79
|
+
shirt deals with Italy's AC Milan, French club Paris St-Germain and Arsenal,
|
80
|
+
whose north London stadium will be named after the airline until at least
|
81
|
+
2028. But they also have deals with the US Open tennis, the International
|
82
|
+
Cricket Council, the Ryder Cup and the USA Rugby Union team.\\n\\nKevin Hasler,
|
83
|
+
general manager of PR firm BPG, Cohn & Wolfe, said: \\\"When you watch a Premier
|
84
|
+
League game and the commentator says 'here at the Etihad' or 'their third
|
85
|
+
successive win at the Emirates', naming stadiums and shirt sponsorship has
|
86
|
+
become enormously effective.\\n\\n\\\"Brands are being seen around the world
|
87
|
+
in newspapers and on TV, day in, day out. The core of these strategies is
|
88
|
+
about investing to put these states on the map, getting them talked about
|
89
|
+
and discussed.\\\"\\n\\nElsewhere, Dubai has hosted an ATP Tennis event at
|
90
|
+
the Aviation Club with Roger Federer, who has a home in the region, winning
|
91
|
+
four times in five years from 2003 and a sixth time this year.\\n\\nThere
|
92
|
+
was, of course, that ill-fated attempt to buy Liverpool in 2007 and 2008.\\n\\nAbu
|
93
|
+
Dhabi has, however, gone one step further. If Dubai has Emirates Airways,
|
94
|
+
Abu Dhabi has Etihad - a name synonymous with the Abu Dhabi-owned Manchester
|
95
|
+
City.\\n\\nAbu Dhabi is ruled by Sheikh Khalifa bin Zayed Al Nahyan. His half
|
96
|
+
brother, Mansour bin Zayed bin Sultan bin Zayed bin Khalifa Al Nahyan (better
|
97
|
+
known as Sheikh Mansour) is the man who bought Manchester City in 2008.\\n\\nThe
|
98
|
+
family have ruled the emirate since the 18th century and pride themselves
|
99
|
+
on 'respect for heritage, culture, tradition.'\\n\\nThe ruling family are
|
100
|
+
complex with Sheikh Mansour one of 19 sons born to Abu Dhabi's long-term ruler
|
101
|
+
Sheikh Zayed bin Sultan Al Nahyan. His mother, one of six wives, had six sons,
|
102
|
+
making her part of this vast family the most influential.\\n\\nIn terms of
|
103
|
+
wealth? It is almost limitless. It is estimated that the family have as much
|
104
|
+
as $1tn in overseas assets alone. Their investment in City represents loose
|
105
|
+
change, in relative terms, even if they have pumped in excess of \\u00a31bn
|
106
|
+
into the club since 2008.\\n\\nTheir football interests extend elsewhere,
|
107
|
+
however. A company owned by Sheikh Mansour has recently agreed to to the tune
|
108
|
+
of \\u00a3312m.\\n\\nThe work will include the creation of a hotel and shopping
|
109
|
+
centre. But perhaps it is their move to expand into the United States that
|
110
|
+
is more interesting.\\n\\nIn 2013, Major League Soccer and the iconic New
|
111
|
+
York Yankees announced a pioneering deal to create an MLS franchise in New
|
112
|
+
York in time for the start of the 2015-16 season -\\n\\nIt is a development
|
113
|
+
that could give Abu Dhabi a footing and profile in the United States that
|
114
|
+
was previously unimaginable. A few months later, it was announced Sheikh Mansour
|
115
|
+
and Manchester City added Australian side Melbourne Heart.\\n\\n\\\"You could
|
116
|
+
look at things like the Abu Dhabi Grand Prix, the Abu Dhabi golf championships
|
117
|
+
and the investment in Manchester City as some of their most prominent global
|
118
|
+
marketing assets,\\\" said Ben Faber, senior director at Fast Track Middle
|
119
|
+
East, the company tasked with delivering City's fan loyalty programmes.\\n\\n\\\"The
|
120
|
+
Manchester City investment has given the emirate global awareness through
|
121
|
+
the fan base and they have been able to tap into associated Abu Dhabi businesses
|
122
|
+
such as Etihad to leverage off the back of that ownership as sponsors of the
|
123
|
+
club.\\\"\\n\\nAnd what of Qatar? Financial experts describe it as the world's
|
124
|
+
most ambitious deal hunter. A brief scan across the London skyline would suggest
|
125
|
+
they have a point.\\n\\nThe Shard, is Qatari owned, as are swathes of the
|
126
|
+
Canary Wharf financial district.\\n\\nDuring the financial crisis, the Qatar
|
127
|
+
Investment Authority (QIA) emerged as a white-knight investor to become Barclays'
|
128
|
+
biggest shareholder. A little further east, many of the buildings in the Olympic
|
129
|
+
Village are now owned by QIA.\\n\\nThe world's most expensive block of flats,
|
130
|
+
is Qatar owned as is Harrods, the famous department store. It owns a fifth
|
131
|
+
of the London stock exchange, 20% of Camden market. The reach is extraordinary.\\n\\nQatar
|
132
|
+
is ruled by a 34-year-old Emir Sheikh Tamim bin Hamad Al Thani, the world's
|
133
|
+
youngest reigning monarch. Born in Doha, the capital of Qatar, he was educated
|
134
|
+
at Harrow School in London, before graduating from the Royal Military Academy
|
135
|
+
Sandhurst. He is now head of the QIA, which is estimated to have assets of
|
136
|
+
\\u00a3300bn.\\n\\nQuestions remain about the bidding process for the 2022
|
137
|
+
World Cup and world governing body Fifa has yet to fully address the plight
|
138
|
+
of the 1.4m migrant workers in the country, many of whom are there against
|
139
|
+
their will.\\n\\nThe project began just after the turn of the century, when
|
140
|
+
some of Europe's elder footballing statesmen were lured to Qatar for one last
|
141
|
+
pay day. Pep Guardiola was among them, playing for Al Ahli between 2003 and
|
142
|
+
2005.\\n\\nThe Bayern Munich manager subsequently became an ambassador for
|
143
|
+
Qatar's successful World Cup bid. But there was more to come. Some 10 days
|
144
|
+
after Fifa announced the country would host the World Cup in 2022, came the
|
145
|
+
news that Qatar would appear on the Barcelona shirt, in a deal that would
|
146
|
+
become the biggest in football sponsorship history.\\n\\nThe deal was struck
|
147
|
+
with the Qatar Foundation, the country's charitable arm. Two years later,
|
148
|
+
Qatar Airways' paid \\u00a376m (\\u20ac96m) to extend the country's sponsorship
|
149
|
+
to all areas of the club.\\n\\nThen in 2011, QIA bought Paris St-Germain.
|
150
|
+
It was a bold move to harness the potential of the biggest one-club city in
|
151
|
+
Europe. To aid their cause PSG signed a controversial \\u20ac200m-a-year sponsorship
|
152
|
+
deal with the Qatar Tourism Authority. Paris is not the only city in Europe
|
153
|
+
touched by the wealth of Qatar. A year earlier, Sheikh Abdullah Al-Thani,
|
154
|
+
of the country's Royal Family, bought the Spanish club Malaga.\\n\\nQatar's
|
155
|
+
wealth is built on having the world's third-largest natural gas reserves.
|
156
|
+
But they will not last forever. \\\"By bringing sport to the Gulf, these states
|
157
|
+
are not only helping to boost tourism, boosting GDP as a result, but they
|
158
|
+
are also reducing their reliance on the oil, gas or industry that may not
|
159
|
+
last forever,\\\" said Dr Davidson.\\n\\nAnd yet while the region brings opportunity
|
160
|
+
and wealth it also brings with it controversy. The climate does not suit all
|
161
|
+
sport at all times. The row about when to stage the 2022 World Cup is well
|
162
|
+
publicised. Qatar is also moving the 2019 World Athletics Championships to
|
163
|
+
the autumn because of the unbearable summer heat.\\n\\nAnd that is to say
|
164
|
+
nothing of conditions for migrant workers, who often have to surrender the
|
165
|
+
passports and whose right to come and go is governed by their employer.\\n\\nIn
|
166
|
+
September two British researchers documenting the problems faced by migrant
|
167
|
+
workers were held for 10 days without charge. In Dubai, the former Leeds United
|
168
|
+
managing director David Haigh has been in prison for six months without charge.\\n\\nAnd
|
169
|
+
yet these issues are being overlooked. Money talks. As does the opportunity
|
170
|
+
to take sport to new parts of the world.\\n\\nWill these states continue to
|
171
|
+
bankroll sport, continue to build their sport portfolios?\\n\\nNo one can
|
172
|
+
be certain of the answer. Doha has twice bid for the Olympic Games but they
|
173
|
+
are unlikely to be put off bidding again. Who would bet against them?\\n\\nThere
|
174
|
+
are, however, those who believe that the region's investment focus is shifting
|
175
|
+
towards cultural and artistic assets. In 2017, construction is due to be complete
|
176
|
+
on a based on the original in New York.\\n\\nBut having secured such a stronghold
|
177
|
+
in sport, their existing investments will remain a key part of each respective
|
178
|
+
state's marketing strategies. The wealth is limitless, the ambition to bring
|
179
|
+
the best athletes in the world to the region remains.\\n\\nIt is a land grab
|
180
|
+
unmatched anywhere in the world. In sporting terms, east has met west.\",\n
|
181
|
+
\ \"image\": \"\",\n \"author\": \"Ben Smith\",\n \"videos\": [],\n \"feeds\":
|
182
|
+
[]\n}"
|
183
|
+
http_version:
|
184
|
+
recorded_at: Tue, 02 Dec 2014 18:15:16 GMT
|
185
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/hashtags
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: text=The+Google+Cast+SDK+is+simple+to+integrate+because+there%E2%80%99s+no%0A++++++need+to+write+a+new+app.+Just+incorporate+the+SDK+into+your+existing%0A++++++mobile+and+web+apps+to+bring+your+content+to+the+TV.+You+are+in%0A++++++control+of+how+and+when+you+develop+and+publish+your+cast-ready%0A++++++apps+through+the+Google+Cast+developer+console.%0A++++++The+SDK+is+available+on+Android+and+iOS+as+well+as+on+Chrome%0A++++++through+the+Google+Cast+browser+extension.
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Aylien Text API Ruby Gem 0.0.1
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 403
|
19
|
+
message: Forbidden
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- openresty/1.5.12.1
|
23
|
+
Date:
|
24
|
+
- Tue, 02 Dec 2014 18:16:42 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain; charset=us-ascii
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
body:
|
32
|
+
encoding: US-ASCII
|
33
|
+
string: Authentication parameters missing
|
34
|
+
http_version:
|
35
|
+
recorded_at: Tue, 02 Dec 2014 18:15:39 GMT
|
36
|
+
recorded_with: VCR 2.9.3
|