Skip to content

PB with Get_shares #164

@ceeeeb

Description

@ceeeeb

Hello,

I use this code for test

import owncloud
oc = owncloud.Client('https://owncloud.comp.tld')
oc.login('login', password')

if oc.is_shared('testdir') == False:
        print "No share"
        link_info = oc.share_file_with_link('testdir')
        id_link=link_info.get_link()
        print id_link
else:
        print "share Exist"
        id_info=oc.get_shares('testdir')
        id_link=oc.get_share(id_info[0].get_id())
        print id_link.get_link()

When Share does not exist, it's Ok , i get id link
No share https://owncloud.comp.tld/index.php/s/SEGaJTjnBxH2Ko3
But when share exist, there is no id link (None)
share Exist None

Can you Help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions