gophish / api-client-python

A Python API Client for Gophish
MIT License
45 stars 48 forks source link

the document -- the example #12

Closed IamRoadRunner closed 5 years ago

IamRoadRunner commented 5 years ago

hey man ! I don't know how to use the api-client-python, and I read your document, but, there is always error message ,when I use the same code . It's better to write more.

jordan-wright commented 5 years ago

Hi there!

Thanks for reaching out. I'm afraid there isn't enough information here to really be actionable. 🙁

If there are any specific examples or errors you are running into, let me know and I'll be happy to help troubleshoot. Thanks again for getting in touch!

IamRoadRunner commented 5 years ago

just like Create New Campaign, groups = [Group(name='Existing Group')] page = Page(name='Existing Page') template = Template(name='Existing Template') profile = SMTP(name='Existing Profile') url = 'http://phishing_server' campaign = Campaign( name='Example Campaign', groups=groups, page=page, template=template, profile=profile)

is Campaign(name='Example Campaign', groups=groups, page=page, template=template, profile=profile, url=url) ??????

but it is not important, we can read your source code but it is not friendly to green hand.