naver-openapi-guide's People
Forkers
swcho okgosu wicksome nexple kyuuuunmi blackseed e-nuri minzard jiwonpapa artvelop choibu2 realize3004 idkwim ybhwang brokenmental toybox12 parkchanjun plokijuhy23 andrewjyjang sunmyungjong bonjugi yumin-choi jianso princeps10 gardenofjungwonlee koreanhong hyowong jacobwoo hsooj sohyunwriter jdcha ai-natural-language-processing-lab padong jaehyolee kim-kyeong-hwan kwangsikjeon bbiyongel back2zion jeongseup chldnjstjr hopesos74 jiyoungl22 solgitsx leekyungun biomalls d3vl5h swim370 inspiringpeople bcyoo yuns-u ryul82 ynskoh family1560 2021-sw-6 coolyjandy ionaryu hamspam elnat1 jokercom hyup98 newegg919 hyewonsonn swkim777 welpia hw130 yeonsooan moamoa90 amarinnn it-works-anywhere-anyone-anytime-iwaaa slkngjle seulee32 htkim27 r-jee rjee-rumy jw971217 songhyonkim withmichael3 korykim sdi1982 rhdmswl chlee1027 sophi-v wdshin byeongseokim brian-jteom ssoyeon8914 rjw0828 myoungsoo7naver-openapi-guide's Issues
sample/c#-asp.net/APIExamURL.cs 코드 에로 수정 요청.
기존 샘플 코드 에로 발생. code 수정 요청.
string query = System.Web.HttpUtility.UrlEncode("https://developers.naver.com/notice", Encoding.UTF8) // 수정 내용
using System;
using System.Net;
using System.Text;
using System.IO;
namespace NaverAPI_Guide
{
public class APIExamURL
{
static void Main(string[] args)
{
string url = "https://openapi.naver.com/v1/util/shorturl";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Headers.Add("X-Naver-Client-Id", "YOUR_CLIENT_ID"); // 개발자센터에서 발급받은 Client ID
request.Headers.Add("X-Naver-Client-Secret", "YOUR_CLIENT_SECRET"); // 개발자센터에서 발급받은 Client Secret
request.Method = "POST";
//string query = "https://developers.naver.com/notice"; // 단축할 URL 대상
string query = System.Web.HttpUtility.UrlEncode("https://developers.naver.com/notice", Encoding.UTF8) // 수정 내용
byte[] byteDataParams = Encoding.UTF8.GetBytes("url=" + query);
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = byteDataParams.Length;
Stream st = request.GetRequestStream();
st.Write(byteDataParams, 0, byteDataParams.Length);
st.Close();
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream stream = response.GetResponseStream();
StreamReader reader = new StreamReader(stream, Encoding.UTF8);
string text = reader.ReadToEnd();
stream.Close();
response.Close();
reader.Close();
Console.WriteLine(text);
}
}
}
Dart 언어로 로마자 변환 쿼리 결과 score가 String으로 반환됩니다.
ClientID : jrTwRLTnEWxbMpVD2qtZ
확인가능한 URL : https://openapi.naver.com/v1/krdict/romanization?query=이상혁
에러현상 : Documents에는 응답의 반환 결과 Json이 포함하는 score의 타입이 inteager로 표기되어 있지만, Dart 언어로 수행했을 때 반환값의 타입이 String 입니다.
에러재현방법: Dart 언어로 api 로마자 변환 api 호출
짐작가는원인: Document의 score 반환 타입 표기가 잘못 되어있는 것 같습니다. score의 타입을 String, int로 모두 json deserialization 수행 결과 int에서는 type cast 에러가 발생했고 String은 정상적으로 수행되었습니다.
script error :: shortURL API
단축 URL API 예제중 PHP 예제 잘못 표기
$url = "https://openapi.naver.com/v1/util/shorturl?url=" + $encText ;
$url = "https://openapi.naver.com/v1/util/shorturl?url=" . $encText ;
로 수정 요청
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.