Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i add Participant in central participant database by API? #5

Open
zhangjianpinghik opened this issue May 24, 2016 · 1 comment

Comments

@zhangjianpinghik
Copy link

when i use api function "cpd_importParticipants" to add Participant in central participant database, the result seem to be wrong? who can help me ? i use lime-py-api and create a add_participants method like this:
def add_participants(self, email, firstname, lastname):
data = """ { "id" : 1,
"method":"cpd_importParticipants",
"params": { "sSessionKey": "%s",
"aParticipants": {"email":"%s", "firstname":"%s", "lastname":"%s"}
} } """ % (self.session_key, email, firstname, lastname)
return self._getJSON(data)

for excemple:
aa.add_participants("[email protected]", "jim", "tom")
but the result return add three add participants in in the central participant database ,but the info is :
firstname lastname email
a a a
j j j
t t t

@Shnoulle
Copy link

Shnoulle commented Oct 29, 2016

aParticipants : here you send 3 participant.

try:

{
    "0": {
        "email": "%s",
        "firstname": "%s",
        "lastname": "%s"
    }
}

or
{"one":{"email":"%s","firstname":"%s","lastname":"%s"}}

PS : not a lime-py-api issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants