Blogger: how is postID being generated?

Discussion in 'PHP' started by kidatum, Jun 5, 2010.

  1. #1
    Hey guys,

    I have a little problem. I am trying to write a script that would make posts on behalf of me. I've managed to make the script navigate and proceed to the area where you create the message itself, but I don't know how to pass the variables like title and textarea through the URL to submit the post.

    During submission blogger encodes the link like this:

    http://www.blogger.com/publish-confirmation.g?blogID=XXXXXXXXXXXXXXX&postID=6796911509827193318&timestamp=1275771714420&javascriptEnabled=true
    Code (markup):
    Xs - being my blogID
    postID - somehow gets generated afterwards or onclick of the Publish button because I can't find it in the code of that page and it's value is blank.

    Does anyone know how blogger generates postID? or some other alternative way that I could do this?

    Thanks in advance.
     
    kidatum, Jun 5, 2010 IP
  2. adamgt

    adamgt Guest

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    lol I was about to answer this thinking you were asking where to find a post id, then I realised i was way out my depth with your question lol, sorry mate wish i could help ya
     
    adamgt, Jun 5, 2010 IP
  3. kidatum

    kidatum Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I know where to find a postID after the post has been created but I need a way of figuring out how it's being generated on post creating/submission.
     
    kidatum, Jun 5, 2010 IP
  4. adamsinfo

    adamsinfo Greenhorn

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #4
    kidatum - I dont know the answer and I'm not sure that anyone would. It might be some base64 encoded string or some unique ID for something. Anyway.. what difference? It will only be generated by blogger AFTER the post is made, and so how will knowing how it is generated help?
     
    adamsinfo, Jun 5, 2010 IP
  5. kidatum

    kidatum Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well, if I know how it's being generated then I can use the same criteria to generate the code with embedded text in the proper fields and submit the post using my script.
     
    kidatum, Jun 5, 2010 IP
  6. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Thats Bloggers Core DB's unique Post ID
    It will be created using auto increment Field number in DB!
    Its unique throughout the Blogspot Blogs
     
    roopajyothi, Jun 5, 2010 IP