Skip to content

Commit

Permalink
fix orders example
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhillier committed Jul 3, 2024
1 parent c3386e1 commit 884d848
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions planet/clients/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,21 +534,20 @@ def create_order(self, request: Dict) -> Dict:
```python
from planet import Planet
from planet.order_request import build_request, product
from planet import Planet, order_request
def main():
client = Planet()
pl = Planet()
image_ids = ["20200925_161029_69_2223"]
request = build_request(
request = order_request.build_request(
'test_order',
[product(image_ids, 'analytic_udm2', 'psscene')]
[order_request.product(image_ids, 'analytic_udm2', 'psscene')]
)
order = client.create_order(request)
order = pl.orders.create_order(request)
```
Parameters:
request: order request definition
request: order request definition (recommended to use the order_request module to build a request)
Returns:
JSON description of the created order
Expand Down Expand Up @@ -724,7 +723,7 @@ def wait(self,
from planet.reporting import StateBar
with StateBar() as bar:
await wait(order_id, callback=bar.update_state)
wait(order_id, callback=bar.update_state)
```
Parameters:
Expand Down

0 comments on commit 884d848

Please sign in to comment.