>Cell newCell = new Cell();
>newCell.setValue("no way");
>newCell.setColumnId(4303755236665220l);
>
> connection = (HttpURLConnection) new >URL("https://api.smartsheet.com/1.1/row/{row_id}/cells").openConnection();
>connection.setRequestMethod("PUT");
>connection.addRequestProperty("Authorization", "Bearer " + accessToken);
>connection.addRequestProperty("Content-Type", "application/json");
>connection.setDoOutput(true);
>
>
>mapper.writeValue(connection.getOutputStream(), newCell);
>mapper.readValue(connection.getInputStream(), new TypeReference<Result<Cell>>() {});
>
>System.out.println("cell added.");
이것은 지정된 행에 셀을 추가하는 Java 코드입니다. ..스마트 시트에서 셀 업데이트하기 (자바)
그것은 오류 반환 : -
"는 요청을 구문 분석 할 수 없습니다 다음 오류가 발생: 서버 HTTP 응답 코드를 반환 요청 몸 때 java.io.IOException 배열 JSON 개체 또는 JSON 중 하나이어야합니다 : 400의 경우 URL : https://api.smartsheet.com/1.1/row/row_id/cells "
row_id에 Long 값이 있습니다.
아무도 도와 줄 수 있습니까?
고마워요. 그것은 일했다!! – user3407635