0

Hot jobs API testing for developer

I need to work with API in hot jobs. How can I test my code for hotjobs functionalities and also What about License key for developping and real application ?
I hv applied for License key yesterday morning, but I did not received any mail yet.

Please give me suggetion quickly regarding this, so I can complete this soon.


Thanks
Prattik

by
7 Replies
  • I have responded to the email you sent the API email alias.

    Thank you.

    Matt Nolan
    Technical Operations Associate

    QUOTE (prattik @ Dec 1 2008, 09:03 PM) <{POST_SNAPBACK}>
    I need to work with API in hot jobs. How can I test my code for hotjobs functionalities and also What about License key for developping and real application ?
    I hv applied for License key yesterday morning, but I did not received any mail yet.

    Please give me suggetion quickly regarding this, so I can complete this soon.


    Thanks
    Prattik
    0
  • Thank you for your support, I hv sent back the require information.

    QUOTE (mattpnolan @ Dec 2 2008, 06:15 AM) <{POST_SNAPBACK}>
    I have responded to the email you sent the API email alias.

    Thank you.

    Matt Nolan
    Technical Operations Associate
    0
  • It is very good for developer. I am just confusing about about header in the api documentation.
    "HTTP custom header". can anyone tell me what I can write in "X-Yahoo-HJAuth-Signature"? like any example....

    Thanking you,
    Mittal
    QUOTE (prattik @ Dec 3 2008, 03:43 AM) <{POST_SNAPBACK}>
    Thank you for your support, I hv sent back the require information.
    0
  • You will need to create first account, then you will get the license key for posting the JOB. Use that key and other values which specify in documentation, tell me if you may have other question on it.

    Prattik

    QUOTE (vmittalp@ymail.com @ Dec 6 2008, 08:40 AM) <{POST_SNAPBACK}>
    It is very good for developer. I am just confusing about about header in the api documentation.
    "HTTP custom header". can anyone tell me what I can write in "X-Yahoo-HJAuth-Signature"? like any example....

    Thanking you,
    Mittal
    0
  • I am very exhausted to solve this error. I also got this problem in last 2-3 days. I am working on PHP, and ever get the error in posting the JOB through API.
    I hv only the problem for signature, it says the signature incorrect even I tried many posibilities on it.
    I hv put the sample code for header section, please give me solution if any one have.

    ========================================================
    language = PHP,CURL
    $request = XML of Authentication from where I got the token
    $token = Hotjobs response gave the token for successfully login
    time() = current time and midnight, January 1, 1970 UTC.
    $liiense_key = license key got when registration.
    $header[] = array wil be use for pass in header for request the post job.
    references link = http://developer.yahoo.com/hotjobs/job_pos...tp-headers.html

    $header[] = "Content-type: text/xml";
    $header[] = "Content-length:".strlen($request);
    $header[] = "X-Yahoo-HJAuth-Token:".$token;
    $header[] = "X-Yahoo-HJAuth-Timestamp:".time();
    $header[] = "X-Yahoo-HJAuth-Signature:".md5($request.time().''.$token.$license_key);
    =========================================================
    It caught the error in signature, I don't know what I am doing wrong in it. Please give anyone solution me ASAP.

    Thank You,
    Prattik


    QUOTE (prattik @ Dec 7 2008, 09:23 PM) <{POST_SNAPBACK}>
    You will need to create first account, then you will get the license key for posting the JOB. Use that key and other values which specify in documentation, tell me if you may have other question on it.

    Prattik
    0
  • this might be helpful:
    .
    .
    $requestXML = XML containing the job details.
    $token = token string returned by authentication API
    $lkey = license key
    .
    .
    $time = time();
    $signature = md5($requestXML . $time . $token . $lkey);

    $headers = array(
    "X-Yahoo-HJAuth-Token: ".$token,
    "X-Yahoo-HJAuth-Signature: ".$signature,
    "X-Yahoo-HJAuth-Timestamp: ".$time
    );
    .
    .
    .

    QUOTE (prattik @ Dec 11 2008, 03:02 AM) <{POST_SNAPBACK}>
    I am very exhausted to solve this error. I also got this problem in last 2-3 days. I am working on PHP, and ever get the error in posting the JOB through API.
    I hv only the problem for signature, it says the signature incorrect even I tried many posibilities on it.
    I hv put the sample code for header section, please give me solution if any one have.

    ========================================================
    language = PHP,CURL
    $request = XML of Authentication from where I got the token
    $token = Hotjobs response gave the token for successfully login
    time() = current time and midnight, January 1, 1970 UTC.
    $liiense_key = license key got when registration.
    $header[] = array wil be use for pass in header for request the post job.
    references link = http://developer.yahoo.com/hotjobs/job_pos...tp-headers.html

    $header[] = "Content-type: text/xml";
    $header[] = "Content-length:".strlen($request);
    $header[] = "X-Yahoo-HJAuth-Token:".$token;
    $header[] = "X-Yahoo-HJAuth-Timestamp:".time();
    $header[] = "X-Yahoo-HJAuth-Signature:".md5($request.time().''.$token.$license_key);
    =========================================================
    It caught the error in signature, I don't know what I am doing wrong in it. Please give anyone solution me ASAP.

    Thank You,
    Prattik
    0
  • Hi,
    we can post the job succesfully but we have a problem in edit and delete the job. In the document it has specified to use method PUT and DELETE for edit and delete the job respectively.

    When we tried to do edit or delete we offen got the message "HTTP Method PUT not allowed".
    It says server may be not supported this method.

    We are using the curl in PHP and for set this http method we have set parameter

    i.e
    set URL for edit : http://hj.yahooapis.com/v1/Job/<JobId> => so I set this to "http://hj.yahooapis.com/v1/Job/?HJInternalJobId=JXOEBSRTF9K"
    curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, "PUT");

    can you give me idea how to set these http method?
    It will be very good if you can send the sample example for edit job.


    QUOTE (Amit R @ Dec 15 2008, 02:49 AM) <{POST_SNAPBACK}>
    this might be helpful:
    .
    .
    $requestXML = XML containing the job details.
    $token = token string returned by authentication API
    $lkey = license key
    .
    .
    $time = time();
    $signature = md5($requestXML . $time . $token . $lkey);

    $headers = array(
    "X-Yahoo-HJAuth-Token: ".$token,
    "X-Yahoo-HJAuth-Signature: ".$signature,
    "X-Yahoo-HJAuth-Timestamp: ".$time
    );
    .
    .
    .
    0
  • Ok now problem is solved,
    I was using the jobid which I found in actual URL when editing job manually.
    we need to use job id which we have been inserted while job posting.

    QUOTE (prattik @ Dec 17 2008, 06:14 AM) <{POST_SNAPBACK}>
    Hi,
    we can post the job succesfully but we have a problem in edit and delete the job. In the document it has specified to use method PUT and DELETE for edit and delete the job respectively.

    When we tried to do edit or delete we offen got the message "HTTP Method PUT not allowed".
    It says server may be not supported this method.

    We are using the curl in PHP and for set this http method we have set parameter

    i.e
    set URL for edit : http://hj.yahooapis.com/v1/Job/<JobId> => so I set this to "http://hj.yahooapis.com/v1/Job/?HJInternalJobId=JXOEBSRTF9K"
    curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, "PUT");

    can you give me idea how to set these http method?
    It will be very good if you can send the sample example for edit job.
    0
This forum is locked.

Recent Posts

in General Discussion on HotJobs