:orphan:
# PetscURLShorten
Uses Google's service to get a short url for a long url 
## Synopsis
```
PetscErrorCode PetscURLShorten(const char url[], char shorturl[], size_t lenshorturl)
```

## Input Parameters

- ***url -*** long URL you want shortened
- ***lenshorturl -*** length of buffer to contain short URL



## Output Parameter

- ***shorturl -*** the shortened URL





## Note
Google no longer provides this service so this routine will no longer function


## See Also
 `PetscGoogleDriveRefresh()`, `PetscGoogleDriveUpload()`, `PetscGoogleDriveAuthorize()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/webclient/google.c.html#PetscURLShorten">src/sys/webclient/google.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/webclient/google.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
