pub fn put(self, resource: &str, comment: &str) -> CommentPutResponse {
        let url = &[self.endpoint, "/comments/put"].join("");
        let mut resp = Client::new()
            .post(url)
            .form(&[("apikey", self.api_key), ("comment", &comment), ("resource", &resource)])
            .send()
            .unwrap();
    
        let text: &str = &resp.text().unwrap();
        from_str(&text).unwrap()
    }
/// Make comments on file and URLs
///
/// # Example
/// 
/// ```
/// use virustotal::*;
/// 
/// let vt = VtClient::new("Your API Key");
/// let resource = "the resource you want to put comments";
/// let comment = "This is a test";
/// vt.put(resource, comment);
/// ```
Make comments on file and URLs
Make comments on file and URLs
pub fn put(self, resource: &str, comment: &str) -> CommentPutResponse {
        let url = &[self.endpoint, "/comments/put"].join("");
        let mut resp = Client::new()
            .post(url)
            .form(&[("apikey", self.api_key), ("comment", &comment), ("resource", &resource)])
            .send()
            .unwrap();
        let text: &str = &resp.text().unwrap();
        from_str(&text).unwrap()
    }
pub fn put ( self , resource : & str , comment : & str ) -> CommentPutResponse { let url = & [ self . endpoint , " " ] . join ( " " ) ; let mut resp = Client :: new ( ) . post ( url ) . form ( & [ ( " " , self . api_key ) , ( " " , & comment ) , ( " " , & resource ) ] ) . send ( ) . unwrap ( ) ; let text : & str = & resp . text ( ) . unwrap ( ) ; from_str ( & text ) . unwrap ( ) }
Make comments on file and URLs
Make comments on file and URLs
self
resource
&str
comment
&str
self
resource
&str
comment
&str
example
```
use virustotal::*.

let vt = VtClient::new("Your API Key");
let resource = "the resource you want to put comments";
let comment = "This is a test";
vt.put(resource, comment);
```
` ` ` use virustotal :: * . let vt = VtClient :: new ( " Your API Key " ) ; let resource = " the resource you want to put comments " ; let comment = " This is a test " ; vt . put ( resource comment ) ; ` ` `