ICS Response mecanism - icalendar

I have some issues responding in PHP to an ics invitation.
My script receives:
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20170623T140000Z
DTEND:20170623T150000Z
DTSTAMP:20170531T131034Z
ORGANIZER;CN=Jona xxx:mailto:xxx#gmail.com
UID:[uid]#google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
TRUE;CN=test#domain.eu;X-NUM-GUESTS=0:mailto:test#domain.eu
CREATED:20170531T131034Z
DESCRIPTION:Affichez votre événement sur la page ...
LAST-MODIFIED:20170531T131034Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Nouvel évènement
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
Then I change the PARTSTAT of the concerned attendee to ACCEPTED and return the ics as a mail attachment.
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20170623T140000
DTEND:20170623T150000
DTSTAMP:20170531T131034
ORGANIZER;CN=Jona xxx:mailto:xxx#gmail.com
UID:[uid]#google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;X-NUM-GUESTS=0:mailto:test#domain.eu
CREATED:20170531T011034
DESCRIPTION:Affichez votre événement sur la page ...
LAST-MODIFIED:20170531T031036
LOCATION:
SEQUENCE:1
STATUS:CONFIRMED
SUMMARY:Nouvel évènement
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
The issue is when i receive the response, i see it as an invitation and Thunderbird does not update the event.
What am I doing wrong?

Ok, i found out what was wrong. I missed the 'METHOD' field in the VCALENDAR node.
To reply, the METHOD must be set on REPLY.
https://www.rfc-editor.org/rfc/rfc5545#page-78

Related

Google Trends Feed not working filtered by country (spain)

I have an app that make requests to the google trends feed filtered by the country spain, but since a few days google seems to have an error.
You can request google trends feed by this url, and if you add the suffix to the url ?pn=26 you are able to filter to an specific country.
Anybody knows why is this happening or if google has made any change? I am a bit confused, because the rest of countries can be requested successfully.
Here Spain URL feed:
https://trends.google.com/trends/hottrends/atom/feed?pn=p26
Here some examples of other countries:
https://trends.google.com/trends/hottrends/atom/feed?pn=p42 Sweden
https://trends.google.com/trends/hottrends/atom/feed?pn=p46 Switzerland
https://trends.google.com/trends/hottrends/atom/feed?pn=p12 Taiwan
https://trends.google.com/trends/hottrends/atom/feed?pn=p33 Thailand
https://trends.google.com/trends/hottrends/atom/feed?pn=p24 Turkey
https://trends.google.com/trends/hottrends/atom/feed?pn=p35 Ukraine
https://trends.google.com/trends/hottrends/atom/feed?pn=p9 United Kingdom
https://trends.google.com/trends/hottrends/atom/feed?pn=p1 United States
Same here!
Even https://trends.google.es/trends/?geo=ES is no longer working.
Check out this thread on Twitter:
https://twitter.com/aleyda/status/1017093832628998144

Facebook graph preview not working

I have added some Open Graph meta tags to a website and checkt it through the debugger tool.
The meta tags:
<meta property="og:title" content="ZOHO, het Rotterdamse maakkwartier." />
<meta property="og:url" content="http://zohorotterdam.nl" />
<meta property="og:image" content="http://zohorotterdam.nl/web/bundles/zoho/images/facebook.jpg" />
<meta property="og:description" content="ZOHO is het Rotterdamse maakkwartier: een woon- en werkplek aan de rand van het centrum, voor en door makers in design, kunst, cultuur, film, muziek, media, tech, food, architectuur en urban planning. Kom meemaken, kijken, proeven, jezelf verbazen en inspireren. Explore the new in ZOHO!" />
Response from graph api:
{
id: "851464644881132",
created_time: "2014-06-01T07:45:06+0000",
description: "ZOHO is het Rotterdamse maakkwartier: een woon- en werkplek aan de rand van het centrum, voor en door makers in design, kunst, cultuur, film, muziek, media, tech, food, architectuur en urban planning. Kom meemaken, kijken, proeven, jezelf verbazen en inspireren. Explore the new in ZOHO!",
image: [
{
height: 1313,
url: "http://zohorotterdam.nl/web/bundles/zoho/images/facebook.jpg",
width: 2500
}
],
is_scraped: true,
title: "ZOHO, het Rotterdamse maakkwartier.",
type: "website",
updated_time: "2014-06-25T16:11:09+0000",
url: "http://zohorotterdam.nl/"
}
So far so good. BUT! When I create a new post on facebook and put in our link (http://zohorotterdam.nl) and hit spacebar to trigger the ajax fetching the link details nothing happens. The loader gif that is supposed to tell you that it is fetching only show up for a nano second and than disappears. Nothing else happens...
I checked the XHR response in chrome debugger tools which shows me Facebook is returning a 500 server error:
Request URL:https://www.facebook.com/ajax/composerx/attachment/link/scraper/?scrape_url=http%253A%252F%252Fzohorotterdam.nl&remove_url=%2Fajax%2Fcomposerx%2Fattachment%2Fstatus%2F&attachment_class=_4j&__av=631637125&composerurihash=2
Request Method:POST
Status Code:500 Internal Server Error
Any idea what is going on here?
I had the same problem, but noticed it didn't happen in Incognito mode. I tried disabling all my extensions, but that didn't do the trick. Finally, I got it working again by going to chrome://settings, showing the Advanced Settings and then clicking the Reset browser button. Whatever got cleaned up, posting to Facebook works again.

want to create a link in email that will post custom/specific text from email to facebook

I have a concierge service that my customers use to ask all sorts of questions. Many of them get their answers emailed to them. A number of them have asked if we could add a button in the email body that will allow them to post the contents of the question/answer to facebook.
I have researched this for a while, specifically the facebook developer tutorial on Open Graph, but it seems that I will be limited to creating very narrow sentences with predefined objects and actions.
So for example, let's say a customer of mine has the following answer emailed to them:
begin email
question: What were the 3 highest scores in NFL history?
answer: The Washington Redskins beat the New York Giants 72–41, November 27, 1966.
The Cincinnati Bengals beat the Cleveland Browns 58–48, November 28, 2004.
The Oakland Raiders beat the Houston Oilers (now the Tennessee Titans) 52-49, December 22, 1963.
[ post to facebook ]
end email
What I want to happen is that when the user clicks on the "post to facebook" link in the email, it will post the following on their facebook account:
begin facebook post
John Smith asked xxxx Concierge a question.
question: What were the 3 highest scores in NFL history?
answer: The Washington Redskins beat the New York Giants 72–41, November 27, 1966.
The Cincinnati Bengals beat the Cleveland Browns 58–48, November 28, 2004.
The Oakland Raiders beat the Houston Oilers (now the Tennessee Titans) 52-49, December 22, 1963.
end facebook post
Does facebook make such an automated post (linked to from an email) possible?
Thanks.

Official list of countries for iPhone AppStore and In-App Purchase? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am looking for an OFFICIAL list of countries where :
1 - users can download free applications using the AppStore?
2 - users can download paid applications using the AppStore?
3 - users can use the In-App Purchase to buy additional features for the application (consumable, non-consumable or subscription products)?
Unfortunately, I did not manage to find one...
I have already find this post but the user doesn't quote his source.
Could you provide me one or several links toward the offical Apple resources where this information is available?
Thanks!
The full list is available during submission of an app through iTunes Connect. (EDIT: I'd forgotten that apps are now submitted through the App Loader/Xcode, but you get the form if you edit an existing app.) The Developer Guide there shows a screenshot of the country list, though I don't know if the image is up-to-date. I'm sure the answer you pointed to simply copied-and-pasted the list from the form in iTunes Connect, as I did for this list.
Here's the full list at this time (updated with new countries as of December 2011), from the form:
Algeria
Angola
Anguilla
Antigua and Barbuda
Argentina
Armenia
Australia
Austria
Azerbaijan
Bahamas
Bahrain
Barbados
Belarus
Belgium
Belize
Bermuda
Bolivia
Botswana
Brazil
Brunei Darussalam
Bulgaria
Canada
Cayman Islands
Chile
China
Colombia
Costa Rica
Croatia
Cyprus
Czech Republic
Denmark
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
Estonia
Finland
France
Germany
Ghana
Greece
Grenada
Guatemala
Guyana
Honduras
Hong Kong
Hungary
Iceland
India
Indonesia
Ireland
Israel
Italy
Jamaica
Japan
Jordan
Kazakstan
Kenya
Korea, Republic Of
Kuwait
Latvia
Lebanon
Lithuania
Luxembourg
Macau
Macedonia, The Former Yugoslav Republic Of
Madagascar
Malaysia
Mali
Malta
Mauritius
Mexico
Moldova, Republic Of
Montserrat
Netherlands
New Zealand
Nicaragua
Niger
Nigeria
Norway
Oman
Pakistan
Panama
Paraguay
Peru
Philippines
Poland
Portugal
Qatar
Romania
Russia
Saint Kitts and Nevis
Saint Lucia
Saint Vincent and The Grenadines
Saudi Arabia
Senegal
Singapore
Slovakia
Slovenia
South Africa
Spain
Sri Lanka
Suriname
Sweden
Switzerland
Taiwan
Tanzania, United Republic Of
Thailand
Trinidad and Tobago
Tunisia
Turkey
Turks and Caicos Islands
Uganda
United Arab Emirates
United Kingdom
United States
Uruguay
Uzbekistan
Venezuela
Vietnam
Virgin Islands, British
Yemen
here's link to official list: http://support.apple.com/kb/TS3599
as on May 18, 2012:
Algeria
Angola
Anguilla
Antigua & Barbuda
Argentina
Armenia
Australia
Austria
Azerbaijan
Bahamas
Bahrain
Barbados
Belarus
Belgium
Belize
Bermuda
Bolivia
Botswana
Brazil
British Virgin Islands
Brunei
Bulgaria
Canada
Cayman Islands
Chile
China
Colombia
Costa Rica
Croatia
Cyprus
Czech Republic
Denmark
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
Estonia
Finland
France
Germany
Ghana
Greece
Grenada
Guatemala
Guyana
Honduras
Hong Kong
Hungary
Iceland
India
Indonesia
Ireland
Israel
Italy
Jamaica
Japan
Jordan
Kazakhstan
Kenya
Kuwait
Latvia
Lebanon
Lithuania
Luxembourg
Macau
Macedonia
Madagascar
Malaysia
Mali
Republic of Malta
Mauritius
Mexico
Montserrat
Moldova
Netherlands
New Zealand
Nicaragua
Niger
Nigeria
Norway
Oman
Pakistan
Panama
Paraguay
Peru
Philippines
Poland
Portugal
Qatar
Romania
Russia
St. Kitts & Nevis
St. Lucia
St. Vincent & The Grenadines
Saudi Arabia
Senegal
Singapore
Slovakia
Slovenia
South Africa
South Korea
Spain
Sri Lanka
Suriname
Sweden
Switzerland
Taiwan
Tanzania
Thailand
Trinidad & Tobago
Tunisia
Turkey
Turks & Caicos
Uganda
United Arab Emirates
United Kingdom
United States
Uruguay
Uzbekistan
Venezuela
Vietnam
Yemen
My country is on both lists, yet only a small percentage of apps are available for download. The most popular apps are not available which is frustrating. I was told it would be too expensive for Apple to pursue getting most apps available on the US store certified in my country. I am aware that it is like this in many other countries as well.

icalendar reminders not working

I am creating an .ics file
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
UID:
SUMMARY:IEP DUE ALERT
ORGANIZER:
LOCATION:
DTSTART:20090429T060000Z
DTEND:20090429T070000Z
DTSTAMP:20090429T185030
DESCRIPTION:An IEP is due for Test, Tyler on 4/29/2009.
BEGIN:VALARM
TRIGGER:P0DT1H0M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
I am able to create an appointment but the reminder is still set to "None".
Please help
Thanks
you can update the P0DT1H0M to -P0DT1H0M , it work on google calendar
Never Mind,
I was using Response.ContentType = "text/x-vcalendar" which is for vCalendar
instead of Response.ContentType = "text/calendar" which is for iCalendar.
Thanks