Giter VIP home page Giter VIP logo

Comments (6)

kiorky avatar kiorky commented on July 27, 2024

I do not announced it because it's a bit in a wave for now, im just in the beginning of the writing of this API client.

Can you upgrade or pull latest (be aware that i rewrote history a bit as it is not still really released.)

That code is already tested, and i confirm it to work in our configurations (see compose setup for tests, for example).

To get more debug infos, can you put a pdb on client.py in the _upload_object method and inspect what's in the response body ?

from bitwardentools.

kiorky avatar kiorky commented on July 27, 2024

I have test failures with 1.20.0, i think something has changed with 1.18.0 that we were using until now in the stack.

I ll fix that ;).

from bitwardentools.

kiorky avatar kiorky commented on July 27, 2024

you can try latest release / HEAD.

from bitwardentools.

mandruis7 avatar mandruis7 commented on July 27, 2024

Yeah seems that now It's working correctly the only thing that was missing was the "collectionIds" that It's still mising in the USAGE.md

from bitwardentools import client as bwclient
from variables import email,password,server,organization

client = bwclient.Client(server, email, password)
client.sync()
orga = client.get_organization(organization)
collection = client.get_collection("Default Collection",orga=orga)

cipherp = {
    "object": "item",
    "name": "testitp",
    "organizationId": orga.id,
    "notes": "supernote",
    "login": {"username": "alice", "password": "rabbit"},
    "collectionIds": [collection.id],
}

cipher = client.create(**cipherp)

from bitwardentools.

kiorky avatar kiorky commented on July 27, 2024

Yes and no, [...], i have to test it further, seems it's now since 1.19+ impossible to add secrets in an organization which arent tied to any collection.

I was able to do it before.

from bitwardentools.

mandruis7 avatar mandruis7 commented on July 27, 2024

I'll be closing the issue due to there's no further problems with this

from bitwardentools.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.