Ditutup

ColdFusion Cfhttp to Create Google Calendar Event.

Please dont bid if you can do it by monday.

It is a very easy those who knows about this. just a 5-10 minute work.

My Budget is Rs 300-800.

I have implement most of the API calls using CFHTTP All is working fine.

I am using below code to create google calendar event.

Every parameter passed to it correct (validated). but with cfhttp it is not getting sent. I got error of

Filecontent { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Missing end time." } ], "code": 400, "message": "Missing end time." } }

<cfset title=eventTitle>

<cfset curlPost = StructNew()>

<cfset curlPost['summary'] = eventTitle>

<cfif eventType EQ 'FIXED-TIME'>

<cfset startTime = Replace(eventStartTime," ","T") & ":00">

<cfset endTime = Replace(eventEndTime," ","T") & ":00">

<cfset eventDate = "">

<cfset allDay = 0>

<cfset curlPost['start']['dateTime'] = startTime>

<cfset curlPost['start']['timeZone'] = [url removed, login to view]>

<cfset curlPost['end']['dateTime'] = endTime>

<cfset curlPost['end']['timeZone'] = [url removed, login to view]>

<cfelse>

<cfset startTime = "">

<cfset endTime = "">

<cfset eventDate = eventDate>

<cfset allDay = 1>

<cfset curlPost['start']['date'] = eventDate>

<cfset curlPost['end']['date'] = eventDate>

</cfif>

<cfdump var="#serializeJSON(curlPost)#">

<cfdump var="#curlPost#">

<cfhttp url="[url removed, login to view]" method="post" result="httpResponse">

<cfhttpparam type="header" name="Content_Type" value="application/json">

<cfhttpparam type="header" name="Authorization" value="Bearer #session.access_token#" />

<cfhttpparam type="body" value="#serializeJSON(curlPost)#">

</cfhttp>

Please help me resolving this issue.

Kemahiran: API, Cold Fusion, cURL, JSON

Lihat lagi: add google calendar event excel, create google calendar event using excel vba, visual basic create google calendar event, create pdf google calendar event, php script add google calendar event, google calendar event wordpress, google calendar event window size, google calendar event input form, create google calendar event perl, crate google calendar event using php, display google calendar event website, create google calendar appointment vbnet, create google calendar aspnet vbnet, create google calendar, create google calendar view

Tentang Majikan:
( 7 ulasan ) Raipur, India

ID Projek: #15170551

1 pekerja bebas membida secara purata ₹600 untuk pekerjaan ini

Lultu

all the parameters are not passed properly and 400 error means... http post url is not correct.... your code seems to be conversion of php code to CF 'curlpost' sounds like php variable...

₹600 INR dalam 2 hari
(2 Ulasan)
3.0