🐈 Community
» Forums » Freelancers » Upwrok API: Trying to get all Agency Proposal...
Page options
sstankov
Community Member

Upwrok API: Trying to get all Agency Proposals

I'm not sure how to post in API section, thus please move it to the correct section.

 

My goal is to list all Agency proposals in PHP. For this reason, I'm using:

 

$applications = new \Upwork\API\Routers\Hr\Freelancers\Applications(self::getClient());
$data = $applications->getList();

 However the response I get is:

 

object(stdClass)[19]
  public 'server_time' => int 1527085451
  public 'error' => 
    object(stdClass)[20]
      public 'status' => int 400
      public 'code' => int 0
      public 'message' => string 'Bad Request: query param limit must be greater than or equal to 1' (length=65)

I'm not sure what limit should I send? There is no info in https://developers.upwork.com/?lang=php#contracts-and-offers_get-job-application-as-client 

 

The second issue I notice is when I use:

$applications = new \Upwork\API\Routers\Hr\Freelancers\Applications(self::getClient());
$data = $applications->getSpecific(proposal_ref);

It works fine for freelancers, but if I want to get Agency Proposals, it returns me that I do not have permissions. Is there a way to get Agency Proposals? The user that I use has agency and he is the owner of the Agency, so permissions should be sufficient.

 

5 REPLIES 5
nkocendova
Community Member

Hi Slav,

We'll have a member of the team reach out to you directly via an email support ticket to further assist you with your API issue and you'll be hearing from them shortly. Thanks!

~Nina

The same problem here. I'm trying to get data from the endpoint GET /api/hr/v4/contractors/applications and the following error is returned:

Bad Request: query param limit must be greater than or equal to 1

 

Is there any way to fix it?

Hi Jakub,

 

One of our team members will reach out to you via ticket as soon as possible and assist you further with your API. Thank you.

~ Goran
Upwork

I am getting the same issue, Can you please guide me, I can fetch data as a freelancer but I am not getting data as an agency, Is there any process for the configuration for calling API for the agency data or not.?

Hi Vipul,

 

Our team will reach out to you as well and will assist you further with your API. Thank you.

~ Goran
Upwork
Latest Articles
Upcoming Events
Featured Topics
Learning Paths