×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Share Online >4.0 documentation or help!

    Hi!

    Im trying to create my own share application but having some troubles with the responses to the phone!

    I've gotten as far as:

    1. I have my own custom "Service provider" in the Share Online app.
    2. I can select an image and choose to transfer it.
    3. The image will successfully get uploaded to my server.

    This is where my problem start, I don't know what to respond to the phone when everything is done which causes the phone to either flag the file as "Could not transfer" or "Waiting for transfer" instead of being flagged as complete and removed from the transfer list.

    This is my current response, but I guess i need something more:

    PHP Code:
    <?php
    header
    ('HTTP/1.1 201 Created');
    header('Content-Type: application/atom+xml');
    echo 
    "<?xml version='1.0' encoding='utf-8'?>";
    ?>
    Thanks!

  2. #2
    Registered User
    Join Date
    May 2008
    Posts
    3

    Re: Share Online >4.0 documentation or help!

    Hi,

    Do you have access to Share Online 4 documentation?
    I really need it ;-)

    Hope the following code helps!
    PHP Code:
        header('HTTP/1.1 201 Created');
        header('Content-type: application/atom+xml; charset=utf-8');
        header('Vary: Accept-Encoding, User-Agent');
        $returnText = '<?xml version="1.0"?>';
        $returnText .='<entry xmlns="http://purl.org/atom/ns#">';
        $returnText .='<title>'.$filename.'</title>';
        $returnText .="<summary>Summery</summary>";
        $returnText .='<issued>' . date('Y-m-d\Th:i:s\Z') . '</issued>';
        $returnText .="<link type=\"text/html\" rel=\"alternate\" href=\"http://teknograd.no/rss.php?blog=" . $session_id  . "\" title=\"HTML\" />";
        // $returnText .='<id>tag:teknograd.no,post-' . $session_id . '</id>';
        $returnText .="<id>" . $unique_id_from_your_cms . "</id>";
        $returnText .='</entry>';
        header('Content-Length: '.strlen($returnText)); 
        echo $returnText;

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Re: Share Online >4.0 documentation or help!

    Hi!

    It works great, thank you very much!

    I'm sorry to say that I don't got the documentation, searched everywhere for it but just can't find it.
    If I do, i'll be happy to share it!

    Thanks again!

Similar Threads

  1. Suggestions to improve documentation for examples
    By heuven in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 0
    Last Post: 2008-12-06, 12:01
  2. [Moved] "Share Online" delete COMPLETELY ?
    By Murat1978 in forum General Development Questions
    Replies: 12
    Last Post: 2008-10-30, 00:54
  3. nokia apps online shops, let's share...
    By bukazoid in forum General Development Questions
    Replies: 2
    Last Post: 2006-02-20, 01:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •