Skip to content

Instantly share code, notes, and snippets.

@Alex4386
Created September 3, 2023 16:11
Show Gist options
  • Save Alex4386/18795a21183cd104ca0108eed51140a7 to your computer and use it in GitHub Desktop.
Save Alex4386/18795a21183cd104ca0108eed51140a7 to your computer and use it in GitHub Desktop.
민트패드 블로그 엔드포인트

블로그 메인

게시물 전체 개수

  • http://pad.mintpass.co.kr/pad/life.asmx/GetMaxLifeIdx
    <int>17</int>

댓글 가져오기

  • http://pad.mintpass.co.kr/pad/life.asmx/GetLifeCommentList?lifeIdx=69&page=1

       <LifeIdx>69</LifeIdx>
       <CurrentPage>1</CurrentPage>
       <TotalPageCount>6</TotalPageCount>
       <TotalCommentCount>69</TotalCommentCount>
       <LifeComment>
         <Comment>케인인님한판해요</Comment>
         <Name>트수</Name>
         <Nick>트수</Nick>
         <Comment1>20230904003200_kanetv.png</Comment1>
         <Comment1Url>???</Comment1Url>
         <RegDate>???</RegDate>
         <Uid>kanetv</Uid>
         <Datediff>3</Datediff>
         <BlogIdx>69</BlogIdx>
       </LifeComment>

    실제 이미지를 불러올때 다음과 같이 가공된다:

    if (current.Comment1 != null && current.Comment1 != "" && current.Comment1Url != null && current.Comment1Url != "")
    {
      string u = MintLifeManager.imgPrefix + current.Comment1Url.Substring(0, 6) + "/" + current.Comment1Url.Substring(6) + "/" + current.Comment1;
      current.Img = ImageDownloader.DownloadImage(u, 320, 240);
    }

    여기서 imgPrefix는 http://life.mintpass.co.kr/down/life/ 이다.

댓글 작성

  • http://pad.mintpass.co.kr/pad/life.asmx/InsertCommentCheck?Idx=17&Uid=kanetv&Comment1=20230904003200_kanetv.png
    Comment1은 다음 포맷이다 {년도}{월}{일}{시}{분}{초}_{사용자아이디}.png

    <int>0</int>
  • [POST] http://pad.mintpass.co.kr/c_pad_upload.asp?target=life&thumb=1
    Content-Type: multipart/form-data

    1. name=file(filename=앞의 Comment1)
    2. name=type(value=0)
  • http://pad.mintpass.co.kr/pad/life.asmx/InsertCommentFinish?Idx=17&Uid=kanetv&Comment1=20230904003200_kanetv.png

댓글 삭제

  • http://pad.mintpass.co.kr/pad/life.asmx/DeleteComment?CommentIdx=69&Uid=kanetv
    <int>0</int>

블로그 조회

  • http://pad.mintpass.co.kr/pad/life.asmx/GetLifeInfo?Idx=69

    <Idx>69</Idx>
    <Num>69</Num>
    <Subject>케인TV</Subject>
    <StartDate>69</StartDate>
    <EndDate>69</EndDate>
    <ApplyLimitCount>69</ApplyLimitCount>
    <ImgFile>kanetv.png</ImgFile>

    여기서 ImgFile의 kanetv.pnghttp://life.mintpass.co.kr/down/life/pad/kanetv.png 가 된다.

블로그 리스트

  • http://pad.mintpass.co.kr/pad/life.asmx/GetLifeList?page=1

    <LifeInfo>
      <Idx>69</Idx>
      <Num>69</Num>
      <Subject>케인TV</Subject>
      <StartDate>69</StartDate>
      <EndDate>69</EndDate>
      <ApplyLimitCount>69</ApplyLimitCount>
      <ImgFilename>kanetv.png</ImgFilename>
      <CurrentCommentCount>69</CurrentCommentCount>
      <RegDate>???</RegDate>
      <ViewCount>69</ViewCount>
      <Status>???</Status>
      <JoinStatus>2</JoinStatus>
      <TodayReg>Y</TodayReg>
    </LifeInfo>
    public void SetJoinStatusInt(int i)
     {
       switch (i)
       {
         case 0:
           this.JoinStatus = LifeJoinStatus.NOT_START;
           break;
         case 1:
           this.JoinStatus = LifeJoinStatus.DOING;
           break;
         case 2:
           this.JoinStatus = LifeJoinStatus.FINISHED;
           break;
         default:
           this.JoinStatus = LifeJoinStatus.WINNER_FIX;
           break;
       }
     }
@Alex4386
Copy link
Author

Alex4386 commented Sep 3, 2023

나머지 GetLifeReplyList 뒤는 나중에 함

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment