Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/Using Any API/existing-job-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,21 @@ contract OpenWeatherConsumer is ChainlinkClient {
/**
* Initial request
*/
function requestEthereumPrice(string memory _city) public {
Chainlink.Request memory req = buildChainlinkRequest(jobId, address(this), this.fulfillEthereumPrice.selector);
function requestWeatherTemperature(string memory _city) public {
Chainlink.Request memory req = buildChainlinkRequest(jobId, address(this), this.fulfillWeatherTemperature.selector);
req.add("city", _city);
sendChainlinkRequestTo(oracle, req, fee);
}

/**
* Callback function
*/
function fulfillEthereumPrice(bytes32 _requestId, uint256 _result) public recordChainlinkFulfillment(_requestId) {
function fulfillWeatherTemperature(bytes32 _requestId, uint256 _result) public recordChainlinkFulfillment(_requestId) {
result = _result;
}

// function withdrawLink() external {} - Implement a withdraw function to avoid locking your LINK in the contract
}
```

For more information on finding existing jobs, see [Find Existing Jobs](../listing-services/).
For more information on finding existing jobs, see [Find Existing Jobs](../listing-services/).