게임강의

[VB6 Source code] 네이버 게시글 작성할때 필요한 토큰값

컨텐츠 정보

본문


With Winhttp



.Open "GET", http://cafe.naver.com/ArticleWrite.nhn?clubid=& Clubid &"&menuid="& menuid &"&boardtype=L&m=write



.Send



 



temp = StrConv(.ResponseBody, vbUnicode)



ClubtempId = Split(Split(temp, "name=""clubTempId"" value=""")(1), """ />")(0)



branchCode = Split(Split(temp, "name=""branchCode"" value=""")(1), """ />")(0)



alimCode = Split(Split(temp, "name=""alimCode"" value=""")(1), """ />")(0)



 



Label1 = ClubtempId



'Label1 에 ClubtempId 값을 불러와준다.



Label2 = branchCode



'Label2 에 branchCode 값을 불러와준다.



Label3 = alimCode



'Label3 에 alimCode 값을 불러와준다.



 



복사허용.



 



'---



 



추가작성



 



'---



 



.Open "POST", "http://cafe.naver.com/TempsavePost.nhn



.SetRequestHeader "Referer", "http://cafe.naver.com/ArticleWrite.nhn?clubid="&카페고유번호 &"&menuid=&boardtype=L&m=write"



.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded; charset=utf-8"



.Send "tempsaveid=&menuid="& 메뉴번호 &"&headid=&subject="& 제목 &"&content="& 내용 &"&preAccessMenuid=&clubid="& 클럽번호 &"&menuidForList=&clubTempId=7OpDqmBxbRD3DiYv&



branchCode=v2YjEID%2B%2FnlM7P9VUuPtAykkg1V9YQBm5duaj9BHvXRQ%2B1tztHCULiLxsBa7je4M0RtvEc9xVJgkPm0



ipnuQjA%3D%3D&type=



&typeOriginal=&personacon=480380



&boardtype=L&page=&m=&attachpollyn=&attachPollids=&attachfileyn=&attachimageyn=



&attachfiles=&attachsizerealsum=0&attachmodifylist=&



attachsizes=&attachimagesizesum=0&attachfilesizesum=0&scrapedyn=&attachinfolist=&attachinfo=0&attachmaplist=



&attachmovie=



&attachmovielist=&article.leveragecode=0



&article.attachCalendarList=



&attachCalendar=&attachedCalendar=



&owfs=false&ndriveid=0&hadNaverPoll=&article.attachMusic=&appPost=&alimCode=dryYGGi4FhzSiEBY



&parameterString=



&representImagePath=&



article.shop.infoPk=&article.shop.ratingScore=&article.shop.imgUrl=&article.shop.userImgUrl=&article.shop.title=



&article.shop.brand=



&article.shop.catId=678



&article.shop.feature=



&article.shop.encodedImgUrl=



&article.shop.infoUrl=&article.shop.position=&article.shop.align=&article.book.bodyLink=



&article.book.infoPk=&article.book.imgUrl=



&article.book.oneLineYn=&article.book.title=



&article.book.ratingScore=&article.book.writer=&article.book.publisher=&article.book.translator=&article.book.releaseDate=



&article.book.recommendBookJson=&article.book.infoUrl=&article.book.position=&article.book.align=&article.templatecode=0



 



'---



 



소스코드가 조금 길긴하지만,



다 적어놓고 알려드려야 하기때문에 다 적겠습니다.



 



위에 소스를 어디에 왜 써야하는지 이제 알려드리겠습니다.



글을 작성하시게 되면,



 



위에 처럼 소스코드가 짜이게 됩니다.



여기에서 집중적으로 보셔야하는것들은,



 



clubTempId=7OpDqmBxbRD3DiYv



branchCode=v2YjEID%2B%2FnlM7P9VUuPtAykkg1V9YQBm5duaj9BHvXRQ%



2B1tztHCULiLxsBa7je4M0RtvEc9xVJgkPm0ipnuQjA%3D%3D



alimCode=dryYGGi4FhzSiEBY



 



이 3개입니다.



clubtempid,branchcode,alimcode



 



이 3개는 글을 작성하실때 마다 값이 바뀌기 때문에,



파싱을 해서 값이 바뀔때마다 가져와줘야합니다.



 



그래서 위에 소스코드가 필요한것 입니다.



 



 


관련자료

댓글 0
등록된 댓글이 없습니다.

최근글


새댓글


  • 등록자 벼배릅 등록일 04.14
알림 0