0
JavaScript API를 사용하여 Google 캘린더 (사용자 이름/비밀번호를 알고있을 때)를 인증 할 수 있습니까? 나는 calendarService.setUserCredentials (username, password)를 시도했다. 하지만 잘(로컬) 자바 스크립트로 Google 캘린더에서 일정을 가져 오는 인증.
JavaScript API를 사용하여 Google 캘린더 (사용자 이름/비밀번호를 알고있을 때)를 인증 할 수 있습니까? 나는 calendarService.setUserCredentials (username, password)를 시도했다. 하지만 잘(로컬) 자바 스크립트로 Google 캘린더에서 일정을 가져 오는 인증.
import com.google.gdata.client.calendar.*
import com.google.gdata.data.*
import com.google.gdata.data.calendar.*
import com.google.gdata.data.extensions.*
import com.google.gdata.util.*
import java.net.URL
import java.text.SimpleDateFormat
String link = link
myService = new CalendarService("calName")
try {
myService.setUserCredentials("user", "password")
} catch (AuthenticationException e) {
// Invalid credentials
e.printStackTrace()
}
작품을 작동하지 않았다, 그러나 1.6
자바를 필요로 보인다