freelancer / freelancer-sdk-python Goto Github PK
View Code? Open in Web Editor NEWOfficial Freelancer.com API SDK
Home Page: https://developers.freelancer.com
License: GNU Lesser General Public License v3.0
Official Freelancer.com API SDK
Home Page: https://developers.freelancer.com
License: GNU Lesser General Public License v3.0
Hi,
Is there a way to check if freelancer who is talking to me in some thread is typing or not.
I know freelancer.com API allow me to send typing notification but I need to receive this typing notification to know if he is typing then I know not to send messages.
from freelancersdk.session import Session
from freelancersdk.resources.projects.projects import search_projects
from freelancersdk.resources.projects.helpers import create_search_projects_filter
session = Session(oauth_token='MY TOKEN')
search_filter = create_search_projects_filter(
from_time=1754814393, # This is year 2025
)
result = search_projects(
session,
query='python',
active_only=True,
search_filter=search_filter,
)
print(result['total_count']) # returns 181
Python 3.6
freelancersdk == 0.1.19
[] List Messages: (suggested function name: get_messages)
[] Search for Messages: (suggested function name: search_messages)
[] List Threads: (suggested function name: get_threads)
The current 0.1.x
version works as follows:
0.1
is the API versionx
is the SDK releaseBut, what if we (and we will) need to make backward incompatible SDK changes?
Fixed in #19
Will fill in.
I have troubles obtaining some user information associated with a project with the following query:
query = create_get_projects_object(
project_ids=[
16590904
],
project_details=create_get_projects_project_details_object(
attachments=True,
),
user_details=create_get_projects_user_details_object(
basic=True,
financial=True,
responsiveness=True,
display_info=True,
balance=True
),
)
The response has the following status
field for the employer.
'status': {'deposit_made': None,
'email_verified': True,
'facebook_connected': None,
'identity_verified': None,
'payment_verified': None,
'phone_verified': None,
'profile_complete': None},
But when taking a look on the web page, the employer seems to have it's payment verified.
Am I missing a parameter for `create_get_projects_user_details_object``or how do I get this field populated with actual values?
Correct link is now https://developers.freelancer.com/docs/use-cases/creating-a-project. This will apply everywhere there is a link to API docs.
[] Search for Freelancers: (suggested function name: search_freelancers)
[] Information About Self: (suggested function name: get_self)
[] Get users
[] Get a specific user details
Hi,
I can't understand the time format used for the values of "from-time" and "to-time" parameters. Could anyone explain how I can convert date and time to the proper format? What's the logic behind the number like 1481179011?!
Thanks for your help.
get_self_user_id
, the only thing that is needed to add is:
def make_get_request(session, endpoint, params_data=None):
This will fix the issue.
The example web application should be updated with the following:
[] Add clearer install and connfiguration instructions (may be docker
and docker compose
based setup)
[] Explain the Freelancer.com SDK usage
[] Add tests
[] Link to it from docs
Look at https://www.twilio.com/docs/tutorials/account-verification-python-flask#building-blocks for inspiration about how to document the sample application.
Currently we return responses from the various functions as ad-hoc custom classes which are dynamically created based on what we get from the API.
I think this needs to be improved. Look at other SDKs and see what they do and see if we can adopt it.
TBD
Hi, is it any way to fetch the jobs with multiple keywords at a time? For example I am trying to fetch MATLAB and python jobs like
para={ 'query':['python','Matlab'], #'query':'Matlab', 'sort_field':'time_updated', 'limit':10}
But it only fetches the jobs with last keyword.
here is what error I get :
File "C:\Users\gura\AppData\Local\Programs\Python\Python37\lib\site-packages\freelancersdk\resources\users\users.py", line 14, in get_self_user_id
response = make_get_request(session, 'self')
TypeError: make_get_request() missing 1 required positional argument: 'params_data'
so ...
in users.py you have :make_get_request(session, 'self') <-two parameters passed
in definition of make_get_request you have :
def make_post_request(session, endpoint, json_data): <- three parameters required.
sorry Im just begginer so can you tell me if Im doing something wrong?
The API call expects the project IDs as projects[]
parameter, not project_ids[]
.
Relevant line:
[x] Get a specific milestone details: #22
[x] Get milestones related to a project: #22
https://developers.freelancer.com/docs/projects/milestones#milestones-get
(See get_bids()
implementation to see how we can implement it)
Will fill in later
[] Talk about search and get functionalities
[] Add logo
[] List contests: (suggested function name: get_contests)
[] Get contest by ID
[] Search for all contests
[] Search for active contests
Upload a new version to PYPI when a tagged commit is pushed.
Hi
I wonder if it is possible to get the all history of a user like to which jobs he has applied so far in his life time, which is assigned to him, which jobs are assigned to others, which jobs are closed etc.
Hi, I am trying to parse the projects with specific key skills after each second and following the search_projects example from the repository. When I tried to pass other search queries except in example, it showed error as
search_data = { 'query': 'python', 'project_types': 'fixed', 'limit': 100, 'offset': 0, # 'from_time' : 1481179011, 'countries' : 'au' #'active_only': False, #'sort_field' : 'time_updated', }
Error:
TypeError: search_projects() got an unexpected keyword argument 'countries'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.