posh icon indicating copy to clipboard operation
posh copied to clipboard

Tiny Bit of Help for a Total Newbie?

Open pale2hall opened this issue 7 years ago • 2 comments

First off, thank you for putting this project together!

I don't really know any go other than the amount it took for me to setup go on my computer, write a Hello World, and get this far:

package main

import "fmt"
import "github.com/joshdk/posh"


func main() {
  creds := posh.Credentials{
	Email:    "username",
	Password: "password",
  }

  config := posh.Config{
	Credentials: &creds,
  }


  client, err := posh.NewClient(config)
  if err != nil {
  	panic(err.Error())
  }

  fmt.Println(client.Session())

}

I'm a bit lost about what calls I can make to this API once I'm logged in, and how I could write them.

Would you be able to point me in the right direction?

pale2hall avatar Jul 06 '18 19:07 pale2hall

Any help would be amazing. Thanks @joshdk

pale2hall avatar Aug 24 '18 14:08 pale2hall

Hello @pale2hall,

Unfortunately, I don't have a very good answer for you at the moment 😬

This repo could really use some more attention, as the login/session endpoint is the only binding at the moment (you were correct in not being able to find anything). Improving API coverage has been on my backlog for a while.

The Poshmark "API" is completely undocumented (I have to proxy my phone through Burp Suite to view the app traffic) which makes things difficult.

Mechanically, the client (and overall health of this repo) could also benefit greatly by being auto-generated using something like Swagger (which is good as I've been experimenting with it in joshdk/circleci-go).

I'm assigning this issue to myself for now, as even I would like to use this library more...

joshdk avatar Aug 25 '18 01:08 joshdk